From ca43f63356e0bb2bf7a8de3675e028d2a699cb1f Mon Sep 17 00:00:00 2001 From: Thibault G Date: Tue, 5 Nov 2024 11:53:55 +0100 Subject: [PATCH] feat: compatibility with Doctrine ORM 3 and DBAL 4 --- src/Command/Import/ImportBuildingAddressesCommand.php | 2 +- src/Entity/BuildingAddress.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/Import/ImportBuildingAddressesCommand.php b/src/Command/Import/ImportBuildingAddressesCommand.php index 723a2cf..88dc336 100644 --- a/src/Command/Import/ImportBuildingAddressesCommand.php +++ b/src/Command/Import/ImportBuildingAddressesCommand.php @@ -90,7 +90,7 @@ private function insertDataFromCsvFile(): void egaid INT(11) UNSIGNED PRIMARY KEY NOT NULL, id_street INT(10) UNSIGNED NOT NULL, postal_code_and_label VARCHAR(110) NOT NULL, - building_id DECIMAL(10) NOT NULL, + building_id VARCHAR(10) NOT NULL, entrance_number SMALLINT(6) NOT NULL, address_number VARCHAR(12) DEFAULT NULL, building_name VARCHAR(50) DEFAULT NULL, diff --git a/src/Entity/BuildingAddress.php b/src/Entity/BuildingAddress.php index cd2b72f..bc1725c 100644 --- a/src/Entity/BuildingAddress.php +++ b/src/Entity/BuildingAddress.php @@ -41,7 +41,7 @@ class BuildingAddress * Note : * Doctrine retourne une chaîne de caractères pour les chiffres à virgules. */ - #[ORM\Column(type: Types::DECIMAL)] + #[ORM\Column(type: Types::STRING)] private ?string $buildingId = null; /**