On 2/11/2016 11:47 AM, Shadowalker wrote:
> After testign several combinations I found out that the issue comes from
> the fact that use statement are not processed properly : 
> |
>  use Doctrine\ORM\Mapping as ORM;
> |
> 
> with 
> |
> @ORM\Entity
> |
> 
> does not work but 
> 
> |
>  use Doctrine\ORM\Mapping\ORM;
> |
> 
> with 
> |
> @Entity
> |
> 
> does
> 

This is because your "as ORM" links the Doctrine\ORM\Mapping to ORM so
therefore ORM\Entity doesn't exist since ORM now points to
Doctrine\ORM\Mapping.  If you had not use "as ORM" the @ORM\Entity would
have worked.

--
Earnie

-- 
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 https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to