raulfraile / sublime-symfony2

A Sublime Text bundle for Symfony2 development
173 stars 43 forks source link

Update manytoone snippet #34

Closed arturolinares closed 8 years ago

arturolinares commented 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;
arturolinares commented 8 years ago

Please? :)

pylebecq commented 8 years ago

Thanks, and sorry for the wait :-)