Doctrine Annotations

10 views
Skip to first unread message

Draco

unread,
Nov 30, 2011, 12:07:00 AM11/30/11
to Symfony2 eclipse plugin
Hi,

I have another quick question ..

How do I configure it to use Doctrine's annotations?

Here is an example ..

namespace ....

use Doctrine\ORM\Mapping as ORM;

/**
* @ORM\Entity
* @ORM\Table(name="user")
*/
class User implements UserInterface {
....
}

I'm not sure I have it configured to use it .. How do I go about
making this work?

Thanks

- Draco

....

Robert Gruendler

unread,
Nov 30, 2011, 4:13:58 AM11/30/11
to symfony2-ec...@googlegroups.com
What do you expect the plugin to do?

At the moment all it does is autocompleting annotation classes in the
docBlock and injecting
the proper use statement in the file.

regards

-robert

Message has been deleted

Draco

unread,
Dec 2, 2011, 11:41:45 PM12/2/11
to Symfony2 eclipse plugin
Hi Robert,

I got it working .. It wasn't recognizing Doctrine annotations or any
Symfony annotations ..

So, I created a new project with vendors,
copied my source code into 'src',
changed the deps file to include other vendors extensions and
ran bin/vendors,
then added them back into AppKernel and autoload..
and now everything works.

Thanks for the great software..
Draco

Reply all
Reply to author
Forward
0 new messages