Is there an annotation / helper / addon plugin for Eclipse PDT to help with the display of Doctrine 2 annotations?

Doctrine 2 allows you to map a db schema using annotations, a-la phpdoc style.
Is there any known existing addon for eclipse that adds all possible annotation options for autocomplete in eclipse pdt?

+4
source share
1 answer

Just adding, since I posted this answer, I switched to PhpStorm, which now has Doctrine annotation support , using a plugin that parses annotation classes directly, so there’s no need to add annotations manually.


I do not know the addon, but I know a way to add new types of docblocks.

To do this, follow these steps: Open Eclipse PDT, go to the settings dialog (windows β†’ preferences) and open the PHP templates section, see Image:

Eclipse template creation

Click Create, then change the context to phpcomment and add the code. To add variables, just use the wrapper $ {}.

Column annotation example:

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

If someone does this for all Doctrine2 annotations and wants to share it with us, we will be very happy. :)

+5
source

All Articles