/** * @param \WE\Homework\Domain\Model\Author $author * @return void */ public function updateAction(Author $author) { $this->authorRepository->update($author); $this->addFlashMessage('Updated the author.'); $this->redirect('index'); }