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')]

View File

@@ -29,7 +29,7 @@ class HouseholdCompositionType
private ?int $id = null;
#[Serializer\Groups(['read', 'docgen:read'])]
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::JSON)]
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::JSON, options: ['default' => '{}', 'jsonb' => true])]
#[Serializer\Context(['is-translatable' => true], groups: ['docgen:read'])]
private array $label = [];

View File

@@ -27,7 +27,7 @@ class Relation
private ?int $id = null;
#[Serializer\Groups(['read'])]
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::BOOLEAN, nullable: true)]
#[ORM\Column(type: \Doctrine\DBAL\Types\Types::BOOLEAN, options: ['default' => true])]
private bool $isActive = true;
#[Serializer\Groups(['read'])]