Doctrine ORM Fail (ClassMetadataFactory.php)

帅比萌擦擦* 提交于 2019-12-06 04:12:33

I'm guessing you accidentally upgraded doctrine when upgrading to silex 2.0. If you simply ran composer update instead of composer update silex/silex, you will update all your composer dependencies, including doctrine.

As of doctrine 2.5, it no longer supports php 5.3. You can upgrade your server to PHP 5.4 or later to fix this.

Alternatively, just downgrade doctrine to version 2.4. Put this into your composer.json:

"doctrine/orm": "2.4.*

Edit: It looks like doctrine 2.5 isn't fully released yet. Do you have your minimum-stability flag set to allow unstable versions? If so, I would also recommend fixing that. You should not be using dev builds in a production project.

Edit 2: It's released now.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!