doctrine2 autloader with cli must use AnnotationRegistry

前端 未结 2 2052
-上瘾入骨i
-上瘾入骨i 2021-02-06 11:20

I must use \\Doctrine\\Common\\Annotations\\AnnotationRegistry::registerFile to access the annotation registry in entity files.

This part is required to use

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-06 11:47

    Thank you Samuel Herzog. It works perfect for me. I was generating the Vendors using composer.json. So When I added my autoload.php i just needed to add these sentences...

    Just like that.

提交回复
热议问题