I have added this line, but it is still not works:

\Doctrine\Common\Annotations\AnnotationRegistry::registerFile(__DIR__.
'/lib/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php'
);



воскресенье, 30 ноября 2014 г., 15:21:50 UTC+3 пользователь Holtkamp 
написал:
>
> No, you need to register the Doctrine ORM namespace (the one that contains 
> the annotations)
>
> Cheers!
> On Nov 30, 2014 10:47 AM, "Pavel Sokolov" <[email protected] <javascript:>> 
> wrote:
>
>> I have tried to use callback:
>>>
>>> \Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(function
>>> ($class) {
>>>     echo 'TEST:'.$class.PHP_EOL;
>>> });
>>>
>>>
>>> I see the next result:
>>> TEST: Doctrine\ORM\Mapping\ORM\Table
>>> TEST: Doctrine\ORM\Mapping\ORM\Entity
>>>
>>>
>>> But seems that it should look like this:
>>> TEST: Doctrine\ORM\Mapping\Table
>>> TEST: Doctrine\ORM\Mapping\Entity
>>>
>>>
>>> May be it is bug in doctrine?   
>>>
>> - 
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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