Details
Description
Having an Entity class with this property declaration :
/** * @ORM\OneToMany(targetEntity="Plan", mappedBy="Dossier") * @var Plan[] **/ protected $Plans;
Getter & Setter are generated this way :
/** * Add Plans * * @param se\JpsBundle\Entity\Plan $plans * @return Dossier */ public function addPlan(\se\JpsBundle\Entity\Plan $plans) { $this->Plans[] = $plans; return $this; }
Problem lies in the
@param se\JpsBundle\Entity\Plan $plans
Should be :
\se\JpsBundle\Entity\Plan $plans
Same thing for Doctrine Collection class.