dmaicher / doctrine-test-bundle

Symfony bundle to isolate your app's doctrine database tests and improve the test performance
MIT License
1.08k stars 60 forks source link

Incompatible with DoctrineBundle 2.4 + ORM 2.9 #158

Closed mbabker closed 3 years ago

mbabker commented 3 years ago

DoctrineBundle 2.4 will drop support for ORM versions before 2.9. As of DoctrineBundle 2.4, it is only configuring the metadata cache using the PSR-6 typehinted Doctrine\ORM\Configuration::setMetadataCache() method. Since the DAMA\DoctrineTestBundle\Doctrine\Cache\StaticArrayCache class doesn't implement the PSR, this causes things to fail over pretty hard. With Doctrine's cache library being deprecated, it would also probably be good to replace the cache implementation used here.

For now, this can be worked around by setting the enable_static_meta_data_cache and enable_static_query_cache options to false.

dmaicher commented 3 years ago

Indeed. Thanks for reporting this.

I will look into this asap.

dmaicher commented 3 years ago

@mbabker would you be able to test https://github.com/dmaicher/doctrine-test-bundle/pull/161 ?

mbabker commented 3 years ago

With that PR everything's working fine for me with the caches re-enabled.

calvera commented 3 years ago

hello, any info when it will be released? thanks

dmaicher commented 3 years ago

Released now: https://github.com/dmaicher/doctrine-test-bundle/releases/tag/v6.6.0