开发者

Is there an annotations plugin/helper/addon for Eclipse PDT to help with Doctrine 2 annotations mapping? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered wi开发者_JAVA百科th facts and citations.

Closed 6 years ago.

Improve this question

Doctrine 2 allows to map the schema of the db by using annotations, a-la phpdoc style.

Is there any known existing eclipse addon that adds all the possible annotation options for autocompletion in eclipse pdt ?


Just an addendum, since I posted this answer, I've switched to PhpStorm, which now has support for Doctrine Annotations, using a plugin that parses the Annotation classes directly so there is no need to add the annotations manually.


I don't know an addon, but I know a way to add new types of docblocks.

For this do the following: Open Eclipse PDT, go to the preferences dialog (windows -> preferences), and open the PHP templates section, see the image:

Is there an annotations plugin/helper/addon for Eclipse PDT to help with Doctrine 2 annotations mapping? [closed]

Click in New, then change the context do phpcomment, and add your code. To add variables just use the ${} wrapper.

Example of the Column annotation:

name: @Column
Pattern: @Column(name="${name}", type="${type}")

If someone does this for all annotations of Doctrine2 and want to share it with us would be very welcome. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜