Skip to content

Commit

Permalink
Merge pull request #4 from Crovitche-1623/feat/decimal-to-string
Browse files Browse the repository at this point in the history
feat: compatibility with Doctrine ORM 3 and DBAL 4
  • Loading branch information
Crovitche-1623 authored Nov 5, 2024
2 parents 718a5fb + ca43f63 commit a9cdbc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Command/Import/ImportBuildingAddressesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/BuildingAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit a9cdbc2

Please sign in to comment.