Ben*_*der 5 symfony doctrine-orm
我$hearAboutIndustry从实体中删除了现在只在生产服务器中获取错误,而不是在本地和登台服务器上!知道为什么或解决方案吗?
Property Tete\AdminBundle\Entity\Customer::$hearAboutIndustry does not exist
500 Internal Server Error - ReflectionException
Run Code Online (Sandbox Code Playgroud)
config_prod.yml
doctrine:
orm:
metadata_cache_driver: apc
result_cache_driver: apc
query_cache_driver: apc
Run Code Online (Sandbox Code Playgroud)
到目前为止我要做的是解决它:
cache:clear --env=prodhearAboutIndustry的所有目录/文件.根本没有参考.doctrine:schema:update.数据库已更新.doctrine:generate:entities.实体已更新.正如Adam在评论中提到的那样,如果上述所有解决方案都已经尝试过并且没有成功,我们最好重新启动apache.解决方案是:
sudo apachectl graceful
小智 5
清除所有查询缓存条目
清除所有结果缓存条目
清除所有元数据缓存条目
使用 debug false 清除 prod 环境的缓存
并且不要忘记将 --env=prod 添加到您的命令中