php-enqueue / enqueue-dev

Message Queue, Job Queue, Broadcasting, WebSockets packages for PHP, Symfony, Laravel, Magento. DEVELOPMENT REPOSITORY - provided by Forma-Pro
https://enqueue.forma-pro.com/
MIT License
2.17k stars 430 forks source link

Doctrine DBAL 3.0 and json_array #1293

Closed NovakHonza closed 1 year ago

NovakHonza commented 1 year ago

After upgrade Doctrine Dbal to 3.0 I have ended with this message:

Unknown column type "json_array" requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType()

The problem is with the definition in Doctrine/mapping/Job.orm.xml in job-queue. I tried replacing the json_array with json and running the tests, but I ended up with errors in precommit hooks that I couldnt fix.

NovakHonza commented 1 year ago

I finally managed to modify the docker configuration so that I was able to run the tests separately and the result of the tests was the same as for the original definition with json_array. I.e. the same risky tests and warnings without any errors.