longitude-one / doctrine-spatial

Doctrine extension to persist spatial data objects.
https://lo-doctrine-spatial.readthedocs.io/en/latest/
MIT License
69 stars 21 forks source link

DBAL platform "Doctrine\DBAL\Platforms\MySQL80Platform" is not currently supported. #110

Open AMorvanSmartPush opened 2 weeks ago

AMorvanSmartPush commented 2 weeks ago

After upgrade to Symfony 7.1, we decided to use longitude-one library. During the upgrade packages, doctrine/dbal has been updated to version 3.9.1.

We use mysql in version 8.0, but we occured this error on file l/lib/LongitudeOne/Spatial/ORM/Query/AST/Functions/AbstractSpatialDQLFunction.php line 160.

Have you an idea to solve this problem ?

Alexandre-T commented 1 week ago

IMO, this problem is due to longitude-one/doctrine-spatial and your "small" upgrade of doctrine/dbal.

In last dbal version, doctrine developers replaced MySQL80Platform by MySQLPlatform. I don't know why but it sounds like your version of longitude-one/doctrine-spatial isn't synchronized with actual doctrine/dbal version.

It needs more analyze, but I guess you have to upgrade to the fourth version of doctrine/dbal.

Could you please provide your composer.json and your composer.lock files. It's possible that I missed something.