/** * delete action - deletes a blog in the repository * * @param \Lobacher\Simpleblog\Domain\Model\Blog $blog */ public function deleteAction(\Lobacher\Simpleblog\Domain\Model\Blog $blog) { $this->blogRepository->remove($blog); $this->redirect('list'); }
/** * update action - updates a post in the repository * * @param \Lobacher\Simpleblog\Domain\Model\Blog $blog * @param \Lobacher\Simpleblog\Domain\Model\Post $post */ public function updateAction(\Lobacher\Simpleblog\Domain\Model\Blog $blog, \Lobacher\Simpleblog\Domain\Model\Post $post) { $this->blogRepository->update($blog); $this->postRepository->update($post); $this->redirect('show', 'Blog', NULL, array('blog' => $blog)); }