Did you register the namespace in the AnnotationRegistry?

http://doctrine-common.readthedocs.org/en/latest/reference/annotations.html

AnnotationRegistry::registerAutoloadNamespace


Not sure whether that is done by default for the ORM annotations...

Cheers,

Menno
On 28 November 2014 at 15:23, Pavel Sokolov <[email protected]> wrote:

> I'm using doctrine 2.4 and I try to migrate to annotations with namespace
>
> I have error "You do not have any mapped Doctrine ORM entities according
> to the current configuration" when I have tried to declare annotations with
> @OEM prefix, like this:
> use Doctrine\ORM\Mapping AS ORM;
> /**
>  * @ORM\Table(name="accounts")
>  * @ORM\Entity
>  */
> class Account {
> }
>
>
>
> But no error when I declare like this:
> /**
>  * @Table(name="accounts")
>  * @Entity
>  */
> class Account {
> }
>
> So, what's wrong?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to