Open konmedia-devops opened 3 months ago
Why doesn't this package have some JSON functions that have afaik same syntax as in MySQL. JSON_LENGTH
or JSON_CONTAINS
for example ?
I did a quick fix and what I did is to copy-paste whole classes and link it in doctrine.yaml config if you're using Symfony. They need to extend from MariaDbJsonFunctionNode
The MariaDB JSON functions are no longer processed as of doctrine/dbal:4.0 because the platform abstraction has changed there.
\Scienta\DoctrineJsonFunctions\Query\AST\Functions\Mariadb\MariadbJsonFunctionNode::validatePlatform
The class mentioned checks for the MySQLPlatform. However, MariaDb now only belongs to it in an abstract way. It would have to check for AbstractMySQLPlatform.