Doctrine ORM Fail (ClassMetadataFactory.php)

柔情痞子 提交于 2019-12-07 22:46:53

问题


recently I made an update of my project with silex 2.0 and mark me the following error mapping Parse error: syntax error, unexpected '[', expecting ')' in/var/www/vhosts/server.com.mx/cmanager.server.com.mx/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php on line 80.

This makes certain tables not all inclusive had to change database administrator and works perfect.

Have a comment or suggestion.

Thank You


回答1:


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.



来源:https://stackoverflow.com/questions/29105842/doctrine-orm-fail-classmetadatafactory-php

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