/** * @param Blog $blog * @param Post $post */ public function updateAction(Blog $blog, Post $post) { $blog->removePost($post); $blog->addPost($post); $this->objectManager->get('Typovision\\Simpleblog\\Domain\\Repository\\BlogRepository')->update($blog); $this->redirect('show', 'Blog', NULL, array('blog' => $blog)); }