php-enqueue/enqueue-dev

Doctrine DBAL 3.0 and json_array

NovakHonza opened this issue · 1 comments

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.

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.