Ejemplo n.º 1
0
 /**
  * Creates a form to delete a Post entity.
  *
  * @param Post $post The Post entity
  *
  * @return \Symfony\Component\Form\Form The form
  */
 private function createDeleteForm(Post $post)
 {
     return $this->createFormBuilder()->setAction($this->generateUrl('_delete', array('id' => $post->getId())))->setMethod('DELETE')->getForm();
 }
 /**
  * {@inheritDoc}
  */
 public function getUpdated()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', array());
     return parent::getUpdated();
 }