doctrine / orm升级2.4到2.5

时间:2015-12-30 17:45:42

标签: symfony doctrine-orm doctrine

我尝试将我的学说/学习从2.4.8升级到2.5.3

这是我的composer.json的一部分:

"require": {
    "symfony/symfony": "~2.7, <2.8",
    "doctrine/orm": "~2.5",
    "doctrine/dbal": "~2.5",
    "doctrine/doctrine-bundle": "~1.6",
    "doctrine/common": "~2.5", 
    ...
}

我得到以下例外:

Fatal error: Class 'Doctrine\ORM\Persisters\BasicEntityPersister' not found in /var/www/mywebsite/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2983

问题是,如果我检查UnitOfWork.php文件,那么使用陈述就是......

如果我改为

"require": {
    "symfony/symfony": "~2.7, <2.8",
    "doctrine/orm": "~2.2,<2.5",
    "doctrine/dbal": "~2.5",
    "doctrine/doctrine-bundle": "~1.6",
    "doctrine/common": "~2.5", 
    ...
}

它运作良好

enter image description here

0 个答案:

没有答案