From 4466a76b5f49c5ce4037606f9f43510425195362 Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Mon, 18 Oct 2021 16:39:35 +0200 Subject: [PATCH] Add conflict with doctrine/dba ^3 to avoid missing json_array type error --- CONFLICTS.md | 23 +++++++++++++++++++++++ composer.json | 1 + 2 files changed, 24 insertions(+) diff --git a/CONFLICTS.md b/CONFLICTS.md index 30d381a39a8..c6264822a22 100644 --- a/CONFLICTS.md +++ b/CONFLICTS.md @@ -40,3 +40,26 @@ references related issues. `ParseError - vendor/symfony/polyfill-mbstring/bootstrap80.php:125:86 - Syntax error, unexpected '=' on line 125 (see https://psalm.dev/173) function mb_scrub(string $string, string $encoding = null): string { $encoding ??= mb_internal_encoding(); return mb_convert_encoding($string, $encoding, $encoding); }` References: https://github.com/vimeo/psalm/issues/4961 + + - `doctrine/dbal:^3`: + + Doctrine column type `json_array` has been removed creating error during a + doctrine migration + + ``` + Error: Migration Sylius\Bundle\CoreBundle\Migrations\Version20201130071338 + failed during Execution. + + In Exception.php line 125: + + Unknown column type "json_array" requested. Any Doctrine type that you use + has to be registered with \Doctrine\DBAL\Types\Type::addType(). You can get + a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap( + ). If this error occurs during database introspection then you might have f + orgotten to register all database types for a Doctrine Type. Use AbstractPl + atform#registerDoctrineTypeMapping() or have your custom types implement Ty + pe#getMappedDatabaseTypes(). If the type name is empty you might have a pro + blem with the cache or forgot some mapping information. + ``` + + References: https://github.com/Sylius/Sylius/issues/13211 diff --git a/composer.json b/composer.json index 4c2095b1fd6..45f7c54e1be 100644 --- a/composer.json +++ b/composer.json @@ -159,6 +159,7 @@ }, "conflict": { "api-platform/core": "^2.6", + "doctrine/dbal": "^3", "laminas/laminas-code": "^4.0.0", "symfony/doctrine-bridge": "4.4.16", "symfony/polyfill-mbstring": "^1.22.0",