Issue with doctrine/orm 2.10
BenMorel opened this issue · 4 comments
Hi,
When trying to upgrade to Doctrine ORM 2.10, I'm getting the following error:
In Configuration.php line 438:
Doctrine\ORM\Configuration::setMetadataCache(): Argument #1 ($cache) must be of type Psr\Cache\CacheItemPoolInterface, DAMA\DoctrineTestBundle\Doctrine\Cache\StaticArrayCache given, called in /app/var/cache/testsync/ContainerG1SYgrU/App_KernelTestsyncContainer.php on line 3380
Could you please provide compatibility with this library version? Thanks in advance!
Which version of this bundle and DoctrineBundle are you using? It works fine for me with v6.6.0
of this bundle and
$ composer show doctrine/*
doctrine/annotations 1.13.2 Docblock Annotations Parser
doctrine/cache 1.12.1 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.
doctrine/collections 1.6.8 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common 3.1.2 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, proxies a...
doctrine/data-fixtures 1.5.0 Data Fixtures for all Doctrine Object Managers
doctrine/dbal 2.13.4 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations v0.5.3 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.
doctrine/doctrine-bundle 2.4.3 Symfony DoctrineBundle
doctrine/doctrine-fixtures-bundle 3.4.0 Symfony DoctrineFixturesBundle
doctrine/doctrine-migrations-bundle 3.1.1 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 projects.
doctrine/inflector 2.0.3 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.
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.2.1 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deplo...
doctrine/orm 2.10.0 Object-Relational-Mapper for PHP
doctrine/persistence 2.2.2 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.
doctrine/sql-formatter 1.1.1 a PHP SQL highlighting library
Hi, thanks for your reply. I'm using doctrine-bundle: 2.4.3
just like you (not sure where v6.6.0
is coming from?):
doctrine/annotations 1.13.2 Docblock Annotations Parser
doctrine/cache 1.12.1 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and ot...
doctrine/collections 1.6.8 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common 3.1.2 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflecti...
doctrine/data-fixtures 1.5.1 Data Fixtures for all Doctrine Object Managers
doctrine/dbal 2.13.4 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations v0.5.3 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.
doctrine/doctrine-bundle 2.4.3 Symfony DoctrineBundle
doctrine/doctrine-fixtures-bundle 3.4.0 Symfony DoctrineFixturesBundle
doctrine/doctrine-migrations-bundle 2.2.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 projects.
doctrine/inflector 2.0.3 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of wo...
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 2.3.4 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database sc...
doctrine/orm 2.10.0 Object-Relational-Mapper for PHP
doctrine/persistence 2.2.2 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.
doctrine/sql-formatter 1.1.1 a PHP SQL highlighting library
And you are using v6.6.0 of dama/doctrine-test-bundle
(this bundle)?
Oops sorry, I was locked to 6.4.*
, I missed that. I don't get this error anymore with 6.6.0
👍
Thank you and sorry for the trouble!