Commit 84355a57 authored by Mat's avatar Mat

il n'arrivait pas à gérer l'id_commande dans la table imbriquée >>

ceci m'a aidé :
https://stackoverflow.com/questions/50194747/symfony-3-embed-collection-of-forms-persistence-issue-integrity-constraint-v#
parent 0796ea9c
......@@ -203,7 +203,7 @@ class Commande
*/
public function addCommandeLegumes(CommandeLegumes $legume)
{
$legume->setCommande($this);
$this->commandeLegumes[] = $legume;
return $this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment