-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Doctrine DBAL 4 and ORM 3 #494
Conversation
currently CI does not run any build with stability=dev dependencies. Shall I add that somehow on devkit? Not so familiar with that. passes fine locally with dev dependencies and DBAL 4 + ORM 3
|
@@ -63,6 +63,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa | |||
$container->loadFromExtension('doctrine', [ | |||
'dbal' => ['url' => 'sqlite://:memory:'], | |||
'orm' => [ | |||
'report_fields_where_declared' => true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed on ORM 3. Otherwise:
1) Sonata\Doctrine\Tests\Mapper\ORM\DoctrineORMMapperTest::testDoctrineMappingLoaded
InvalidArgumentException: The $reportFieldsWhereDeclared argument is no longer supported, make sure to omit it when calling Doctrine\ORM\Mapping\Driver\AttributeDriver::__construct.
/var/www/sonata-doctrine-extensions/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/AttributeDriver.php:45
/tmp/sonata-doctrine-extensions/var/cache/ContainerKqO7EY2/get_Doctrine_Orm_DefaultMetadataDriverService.php:21
/tmp/sonata-doctrine-extensions/var/cache/ContainerKqO7EY2/Sonata_Doctrine_Tests_App_KernelTestDebugContainer.php:98
/tmp/sonata-doctrine-extensions/var/cache/ContainerKqO7EY2/getDoctrine_Orm_DefaultConfigurationService.php:26
/tmp/sonata-doctrine-extensions/var/cache/ContainerKqO7EY2/Sonata_Doctrine_Tests_App_KernelTestDebugContainer.php:98
/tmp/sonata-doctrine-extensions/var/cache/ContainerKqO7EY2/getDoctrine_Orm_DefaultEntityManagerService.php:24
/tmp/sonata-doctrine-extensions/var/cache/ContainerKqO7EY2/getDoctrine_Orm_DefaultEntityManagerService.php:21
/var/www/sonata-doctrine-extensions/vendor/symfony/var-exporter/Internal/LazyObjectState.php:97
/var/www/sonata-doctrine-extensions/vendor/symfony/var-exporter/LazyGhostTrait.php:176
/var/www/sonata-doctrine-extensions/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:513
/var/www/sonata-doctrine-extensions/vendor/symfony/doctrine-bridge/CacheWarmer/ProxyCacheWarmer.php:48
/var/www/sonata-doctrine-extensions/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php:108
/var/www/sonata-doctrine-extensions/vendor/symfony/http-kernel/Kernel.php:545
/var/www/sonata-doctrine-extensions/vendor/symfony/http-kernel/Kernel.php:763
/var/www/sonata-doctrine-extensions/vendor/symfony/http-kernel/Kernel.php:126
/var/www/sonata-doctrine-extensions/vendor/symfony/framework-bundle/Test/KernelTestCase.php:73
/var/www/sonata-doctrine-extensions/tests/Mapper/ORM/DoctrineORMMapperTest.php:58
/var/www/sonata-doctrine-extensions/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
/var/www/sonata-doctrine-extensions/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
/var/www/sonata-doctrine-extensions/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
/var/www/sonata-doctrine-extensions/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684
/var/www/sonata-doctrine-extensions/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
That could be an idea. So far we used Another idea would be to add a Ci with stability dev, maybe |
Hi, Any news about this PR @dmaicher ? |
6f15d8a
to
26f3870
Compare
@VincentLanglet the dev build works using DBAL 4 and ORM 3: https://github.com/sonata-project/sonata-doctrine-extensions/actions/runs/7626608873/job/20773373404?pr=494 Now just the question how to get this working with dev-kit 😄 |
6543c1b
to
dbe3dbd
Compare
Do you need help with this ? |
Yeah I won't look into this anytime soon I think. If someone could help out that would be nice. |
dbe3dbd
to
6ed9c1a
Compare
@VincentLanglet final versions for ORM and DBAL have been released - so no devkit changes needed for now. But the static analysis fails seem interesting. Probably we are indeed not compatible with ORM 3 and its not covered by tests |
Indeed, discriminator column is now a class Maybe adding a cc @greg0ire |
I opened doctrine/orm#11226 for the static analysis And you can rebase for the rector build. |
We can ignore the error until the PR is merged/released. Do you have time to finish the PR @dmaicher ? |
I will take a look later today 👍 |
7a7e42a
to
bece345
Compare
bece345
to
797cd6b
Compare
797cd6b
to
1728bb2
Compare
2.4.0 is released |
Subject
I am targeting this branch, because its BC.
Changelog