Commit ba3b3a81 authored by Mat's avatar Mat

mieux

parent 8a882dde
......@@ -216,7 +216,7 @@ class Commande
*/
public function addCommandeLegumes(CommandeLegumes $legume)
{
$legume->setCommande($this);
$legume->setCommande($this); // pas un entier
$this->commandeLegumes[] = $legume;
return $this;
......
......@@ -165,10 +165,10 @@ class CommandeLegumes
}
/**
* @param int $commande
* @param Commande $commande
* @return CommandeLegumes
*/
public function setCommande($commande)
public function setCommande(Commande $commande)
{
$this->commande = $commande;
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