Skip to content

4.9.0 version doesn't load the correct DBAL Platform #730

Closed
@jdecool

Description

@jdecool

Environment

  • PHP 8.1.20
  • Symfony 5.4
  • DBAL 3.6.3 / ORM 2.14.3
  • Sentry Symfony 4.9.0

Steps to Reproduce

On a project I work, I've updated sentry/sentry-symfony from 4.8.0 to 4.9.0.

After the update I've this exception when trying to interact with the database:

In AbstractPlatform.php line 441:
                                                                               
  Unknown database type json requested, Doctrine\DBAL\Platforms\MySQLPlatform  
   may not support it.  

It seems that #723 change the AbstractPlaform loaded instance.
In my configuration I specify the serverVersion in the Doctrine DSN.

With the 4.8.0 I've the Doctrine\DBAL\Platforms\MySQL80Platform which is loaded whereas when I update dependency to 4.9.0 load Doctrine\DBAL\Platforms\MySQLPlatform which not implement the json type mapping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions