On 12 February 2016 at 19:46, Earnie <[email protected]> wrote:

> On 2/11/2016 1:31 PM, Ryan R. wrote:
> > Seriously ?!
> >
>
> Yes!
>
> > Please read again how namespace aliasing works before adding comments
> > that are wrong even in the simple php realm....
> >
>
> Read the code given, as you explain ...
>
> > Using
> > use Doctrine\ORM\Mapping as ORM;
> > means that any class in the namespace Doctrine\ORM\Mapping can now be
> > called using @ORM\{class name or next namespace level}
> >
>
> To access the "next namespace level" you would now need ORM\ORM\Entity
> to access the Entity class of the Doctrine\ORM\Mapping\ORM namespace
> because ORM is now an alias of namespace Doctrine\ORM\Mapping.
>
>
Hey Earnie,

Imports were completely ignored in this case, as a different version of the
annotation reader was used (
https://github.com/doctrine/annotations/blob/f25c8aab83e0c3e976fd7d19875f198ccf2f7535/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php
)

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

-- 
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