From cc849e279dfb1811ec8c8336cd8f537cf066b521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 13 Dec 2021 14:38:33 +0100 Subject: [PATCH] fix column name --- src/Bundle/ChillMainBundle/Entity/Civility.php | 4 ++-- .../ChillMainBundle/migrations/Version20211213112628.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Entity/Civility.php b/src/Bundle/ChillMainBundle/Entity/Civility.php index 2cab636b1..c91016a63 100644 --- a/src/Bundle/ChillMainBundle/Entity/Civility.php +++ b/src/Bundle/ChillMainBundle/Entity/Civility.php @@ -48,9 +48,9 @@ class Civility private array $name = []; /** - * @ORM\Column(type="float", nullable=true, options={"default": 0.0}) + * @ORM\Column(type="float", name="ordering", nullable=true, options={"default": 0.0}) */ - private float $order = 0.0; + private float $order = 0; public function getAbbreviation(): array { diff --git a/src/Bundle/ChillMainBundle/migrations/Version20211213112628.php b/src/Bundle/ChillMainBundle/migrations/Version20211213112628.php index 624b0eac4..012ab27d9 100644 --- a/src/Bundle/ChillMainBundle/migrations/Version20211213112628.php +++ b/src/Bundle/ChillMainBundle/migrations/Version20211213112628.php @@ -21,7 +21,7 @@ final class Version20211213112628 extends AbstractMigration { public function down(Schema $schema): void { - $this->addSql('ALTER TABLE chill_main_civility DROP "order"'); + $this->addSql('ALTER TABLE chill_main_civility DROP "ordering"'); } public function getDescription(): string @@ -31,6 +31,6 @@ final class Version20211213112628 extends AbstractMigration public function up(Schema $schema): void { - $this->addSql('ALTER TABLE chill_main_civility ADD "order" FLOAT DEFAULT 0.0'); + $this->addSql('ALTER TABLE chill_main_civility ADD "ordering" FLOAT DEFAULT 0.0'); } }