theofidry / AliceDataFixtures

Nelmio Alice extension to persist the loaded fixtures.
MIT License
311 stars 71 forks source link

Support PHP 8.0 and doctrine/mongodb-odm-bundle #168

Closed alexislefebvre closed 3 years ago

alexislefebvre commented 3 years ago

This reverts commit 6dc3c966097bff8e0ed92d5f4abba81cee6f782d.

Remove temporary code from #158

It will require https://github.com/doctrine/DoctrineMongoDBBundle/pull/662 or https://github.com/doctrine/DoctrineMongoDBBundle/pull/665

alexislefebvre commented 3 years ago

The last version of doctrine/mongodb-odm-bundle allows PHP8. But a new error appeared:

1 Fidry\AliceDataFixtures\Bridge\Doctrine\Persister\ObjectManagerPersisterTest::testCanPersistEntitiesWithoutExplicitIdentifierSetEvenWhenExistingEntitiesHaveOne Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'INSERT INTO Dummy (id) VALUES (null)' with params [null]:

SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens

See the full log: https://github.com/theofidry/AliceDataFixtures/pull/168/checks?check_run_id=1809551433

I don't understand what is causing this. PHP8? Doctrine? Their combination?

alexislefebvre commented 3 years ago

Thanks for the merge. :rocket: