Description
When using this (very great :smile:) plugin with the new Sylius 1.9 which install doctrine/common:^3.0 (due to doctrine/orm:^2.7 requirement), it make bin/console cache:clear fails and the app unable to boot due to this error:
doctrine/annotations 1.12.1 Docblock Annotations Parser
doctrine/cache 1.10.2 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis...
doctrine/collections 1.6.7 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common 3.1.1 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects de...
doctrine/data-fixtures 1.5.0 Data Fixtures for all Doctrine Object Managers
doctrine/dbal 2.12.1 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and managem...
doctrine/doctrine-bundle 2.2.4 Symfony DoctrineBundle
doctrine/doctrine-migrations-bundle 3.0.2 Symfony DoctrineMigrationsBundle
doctrine/event-manager 1.1.1 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine pro...
doctrine/inflector 2.0.3 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase ...
doctrine/instantiator 1.4.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer 1.2.1 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations 3.1.1 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) ...
doctrine/orm 2.8.2 Object-Relational-Mapper for PHP
doctrine/persistence 2.1.0 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine ob...
doctrine/sql-formatter 1.1.1 a PHP SQL highlighting library
gedmo/doctrine-extensions v3.0.3 Doctrine2 behavioral extensions
phpstan/phpstan-doctrine 0.12.32 Doctrine extensions for PHPStan
sonata-project/doctrine-extensions 1.12.0 Doctrine2 behavioral extensions
stof/doctrine-extensions-bundle v1.6.0 Integration of the gedmo/doctrine-extensions with Symfony
sylius-labs/doctrine-migrations-extra-bundle v0.1.4
symfony/doctrine-bridge v5.2.5 Provides integration for Doctrine with various Symfony components
symfony/doctrine-messenger v5.2.5 Symfony Doctrine Messenger Bridge
Description
When using this (very great :smile:) plugin with the new Sylius 1.9 which install
doctrine/common:^3.0
(due todoctrine/orm:^2.7
requirement), it makebin/console cache:clear
fails and the app unable to boot due to this error:How to reproduce
create-project sylius/sylius-standard sylius-acme
cd sylius-acme
composer require require tilleuls/sylius-click-n-collect-plugin
bin/console cache:clear
Possible Solution
In https://github.com/coopTilleuls/CoopTilleulsSyliusClickNCollectPlugin/blob/master/src/Fixture/Factory/OrderExampleFactory.php, replace
Doctrine\Common\Persistence\ObjectManager
instances byDoctrine\ORM\EntityManagerInterface
and it should do the job.Additional Context
composer show
's output:composer why doctrine/common
's output:composer why doctrine/orm
's output: