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'); } }