public function editAction()
{
$params = $this->getRequest()->getParams();
if (!isset($params['acceptance'])) {
throw new InvalidArgumentException();
}
$acceptance = $this->repository->find($params['acceptance']);
if ($acceptance) {
$this->form->setFromEntity($acceptance);
$this->handleForm($this->form, $acceptance);
$this->view->form = $this->form;
$this->view->acceptance = $acceptance;
}
}