Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $your_entity = $form->getData();
- $this->em->merge($your_entity); // MERGE not PERSIST
- $this->em->flush();
- if ($id == 0) {
- $task = new Task();
- }
- hello_index:
- pattern: /hello/index/{id}
- defaults: { _controller: AcmeHelloBundle:hello:index, id:0 }
Add Comment
Please, Sign In to add comment