/** * 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)); }
/** * update action - updates a blog in the repository * * * @param \Lobacher\Simpleblog\Domain\Model\Blog $blog * @param array $extraInfo */ public function updateAction(\Lobacher\Simpleblog\Domain\Model\Blog $blog, array $extraInfo) { $this->setTitleToBlog($blog, $extraInfo); $this->blogRepository->update($blog); $this->redirect('updateForm', 'Blog', NULL, array('blog' => $blog)); }
/** * update action - updates a blog in the repository * * @param \Lobacher\Simpleblog\Domain\Model\Blog $blog * @return void */ public function updateAction(\Lobacher\Simpleblog\Domain\Model\Blog $blog) { $this->blogRepository->update($blog); $this->redirect('list'); }