Closed arturolinares closed 8 years ago
When using ManyToOne doctrine snippet, the targetEntity was tied to the visibility keyword creating fields like:
/** * @ORM\ManyToOne(targetEntity="private") * @ORM\JoinColumn(name="test", referencedColumnName="id") */ private $test;
or
/** * @ORM\ManyToOne(targetEntity="MyEntity") * @ORM\JoinColumn(name="test", referencedColumnName="id") */ MyEntity $test;
Now you can do this:
/** * @ORM\ManyToOne(targetEntity="MyEntity") * @ORM\JoinColumn(name="test", referencedColumnName="id") */ private $test;
Please? :)
Thanks, and sorry for the wait :-)
When using ManyToOne doctrine snippet, the targetEntity was tied to the visibility keyword creating fields like:
or
Now you can do this: