Open Chris53897 opened 4 months ago
Solving https://github.com/liip/LiipTestFixturesBundle/issues/300 would help development.
On the 3.x
branch, with doctrine/dbal
4, this line is not working:
$this->items[$registry->getName()][$driverName]
is evaluated as false, null or whatever and it switch to the statement after ??
.
Update: you found the issue: DatabaseToolCollection
registers an item with key Doctrine\DBAL\Platforms\SqlitePlatform
then later the key Doctrine\DBAL\Platforms\SQLitePlatform
is searched.
Please check this:
Feel free to backport it to the 2.x
branch.
Tests were OK on local environment but not on CI, because the versions of databases used on GitHub Actions were outdated: https://github.com/liip/LiipTestFixturesBundle/pull/306/commits/bf29b7d7c50280f6f96a38dd8eede57ec7529355
https://github.com/liip/LiipTestFixturesBundle/issues/298
Maybe the only problem is this change. https://github.com/doctrine/dbal/blob/4.0.x/UPGRADE.md#bc-break-renamed-sqlite-platform-classes
TODO: I know there must be a bc layer for dbal < 4