Symfony Class“ App:configsystem”不存在
作曲家更新
之后,Symfony对我无法正常工作。我已经卸载并重新安装了该项目和作曲家。我能够稍微缩小目前的问题。
在我的项目中,我们目前使用此符号:
$config = $this->getDoctrine()->getRepository("App:ConfigSystem")->find(1);
现在,Symfony抱怨它无法再找到类app:configsystem
。
一旦将代码更改为以下内容:
$config = $this->em->getRepository(ConfigSystem::class)->find(1)
一切都会正常运行。由于我们仍然在项目中更频繁地使用第一个符号,因此我想问一下您是否知道问题以及如何再次解决问题。不幸的是,我在这个方向上没有发现任何东西。
Composer Update
等。不幸的是,没有帮助。
After a composer update
, Symfony does not work properly for me. I have uninstalled and reinstalled the project and composer several times. I was able to narrow down my current problem a bit.
In my project we currently use this notation:
$config = $this->getDoctrine()->getRepository("App:ConfigSystem")->find(1);
Now, Symfony complains that it can't find the class App:ConfigSystem
anymore.
Once I change the code to the following:
$config = $this->em->getRepository(ConfigSystem::class)->find(1)
everything runs normally again. Since we still use the first notation more often in the project, I wanted to ask you if you know the problem and how to fix it again. Unfortunately, I have found nothing in this direction.
composer update
, etc. has unfortunately not helped.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论