DDC-2121: EntityGenerator generates bad type hint (missing \) #2808

Closed
doctrinebot opened this Issue Nov 4, 2012 · 2 comments

1 participant

@doctrinebot

Jira issue originally created by user serard:

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.

@doctrinebot

Comment created by @FabioBatSilva:

Fixed : 262c3ee

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.3.1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment