Symfony 2.3: CollectionRegionDoctrineCommand not detected when update providers and cache flushing

Everything worked fine until I implement vendors.

Then, when I clean the cache, I get the following error:

PHP Fatal error: class ' Learning \ ORM \ Tools \ Console \ Command \ ClearCache \ CollectionRegionCommand' not found / var / app / ondeck / vendor / doctrine / doctrine -bundle / Doctrine / Bundle / DoctrineBundle / Command / Proxy / CollectionRegionDoctrineCommand.php on line 29

+4
source share
3 answers

I also had the same issue, but with Symfony 2.4 with the following inside my composer.json file:

    "symfony/symfony": "~2.4",
    "doctrine/orm": ">=2.2.3,<2.4-dev",
    "doctrine/doctrine-bundle": "~1.2",
    "doctrine/doctrine-migrations-bundle" : "dev-master",
    "doctrine/doctrine-fixtures-bundle" : "dev-master",

​​ 2.4.1 Doctrine ORM, , Github :

( ). "master" . , ORC Doctrine , "master" :

    "symfony/symfony": "~2.4",
    "doctrine/orm": "dev-master",
    "doctrine/doctrine-bundle": "~1.2",
    "doctrine/doctrine-migrations-bundle" : "dev-master",
    "doctrine/doctrine-fixtures-bundle" : "dev-master",

:   . /composer.phar update doctrine/orm

+6

, .

, symfony2, : ,

php composer.phar update

php composer.phar update [name of the vendor]

: ,

php comoser.phar install

.

0

ok change your composer.json and install:

    "doctrine/orm": "~2.2,>=2.2.3",

It works for us.

0
source

Source: https://habr.com/ru/post/1523900/


All Articles