Guest User

Untitled

a guest
Apr 26th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $your_entity = $form->getData();
  2. $this->em->merge($your_entity); // MERGE not PERSIST
  3. $this->em->flush();
  4.  
  5. if ($id == 0) {
  6. $task = new Task();
  7. }
  8.  
  9. hello_index:
  10. pattern: /hello/index/{id}
  11. defaults: { _controller: AcmeHelloBundle:hello:index, id:0 }
Add Comment
Please, Sign In to add comment