/** * @param \WE\Homework\Domain\Model\Author $author * @return void */ public function deleteAction(Author $author) { $this->authorRepository->remove($author); $this->addFlashMessage('Deleted a author.'); $this->redirect('index'); }
/** * @param \WE\Homework\Domain\Model\Post $post * @return void */ public function editAction(Post $post) { $this->view->assign('listAuthors', $this->authorRepository->findAll()); $this->view->assign('listCategory', $this->categoryRepository->findAll()); $this->view->assign('post', $post); }