/** * delete action - deletes a post in the repository * * @param Blog $blog * @param Post $post */ public function deleteAction(Blog $blog, Post $post) { $blog->removePost($post); $this->objectManager->get('Typovision\\Simpleblog\\Domain\\Repository\\BlogRepository')->update($blog); $this->redirect('show', 'Blog', NULL, array('blog' => $blog)); }