Doctrine error: Class 'Doctrine\ORM\EntityRepository' not found

前端 未结 2 1489
暖寄归人
暖寄归人 2021-01-26 19:27

I\'m new in Doctrine, I\'m following the examples in the documentation. When I create a Repository class (e.g. UserRepository.php) and I try to extend EntityRepository class I g

相关标签:
2条回答
  • 2021-01-26 20:10

    Problem solved. The problem was in the bootstrap.php file. I was loading the entities before loading the bootstrap_doctrine.php; that's all.

    0 讨论(0)
  • 2021-01-26 20:26

    Did you put namespace in your repository class?

    0 讨论(0)
提交回复
热议问题