Beispiel #1
0
 /**
  * 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');
 }
Beispiel #2
0
 /**
  * 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));
 }