Clean migration for person bundle

This commit is contained in:
2024-09-19 14:38:45 +02:00
committed by Julien Fastré
parent a604f3947c
commit 877c33e4ce
5 changed files with 71 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ class ClosingMotive
#[Serializer\Context(['is-translatable' => true], groups: ['docgen:read'])]
private array $name = [];
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::FLOAT)]
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::FLOAT, options: ['default' => 0.0])]
private float $ordering = 0.0;
#[ORM\ManyToOne(targetEntity: ClosingMotive::class, inversedBy: 'children')]