Skip to content

Instantly share code, notes, and snippets.

@devalexandre
Last active September 30, 2015 21:55
Show Gist options
  • Save devalexandre/3caf825564051e49947a to your computer and use it in GitHub Desktop.
Save devalexandre/3caf825564051e49947a to your computer and use it in GitHub Desktop.
<?php
public function newAction($id)
{
$entity = new Entrada();
$material = new Material($id);
$entity->setMaterial($material);
$form = $this->createCreateForm($entity);
$form->
return $this->render('CooperativaRedeBundle:Entrada:new.html.twig', array(
'entity' => $entity,
'form' => $form->createView(),
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment