raulfraile / sublime-symfony2

A Sublime Text bundle for Symfony2 development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ORM\ManyToOne

jinky32 opened this issue · comments

Hi,
Thanks for your work on this!

I was wondering if when I generate an Entity via right click > Generate > Entity is it possible to set annotations on a field like:

  • @Orm\ManyToOne(targetEntity="A", inversedBy="B")
  • @Orm\JoinColumn(name="X", referencedColumnName="Y")

Hello @jinky32,

I don't know what is the "Right Click > Generate > Entity". I guess it is something that comes from another plugin.
So, it seems that we won't be able to do this in this plugin.

But I think the Sublime Text API allows to insert snippets. The other plugin could insert the snippets from our plugin but you will have to ask the author of the other plugin. I don't know if he will accept to depend on another plugin though.

I'm sorry not to be able to help you more.

Best regards.

woops - sorry. Thanks for taking the time to reply tho.