diff --git a/src/Bundle/ChillJobBundle/src/Entity/Frein.php b/src/Bundle/ChillJobBundle/src/Entity/Frein.php index 79a41b4d5..63b73cc26 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/Frein.php +++ b/src/Bundle/ChillJobBundle/src/Entity/Frein.php @@ -29,7 +29,7 @@ class Frein implements HasPerson, \Stringable #[ORM\GeneratedValue(strategy: 'AUTO')] private ?int $id = null; - + #[ORM\Column(name: 'reportDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE)] #[Assert\NotNull] #[Assert\GreaterThan('5 years ago', message: 'La date du rapport ne peut pas ĂȘtre plus de cinq ans dans le passĂ©')] @@ -52,7 +52,7 @@ class Frein implements HasPerson, \Stringable private $freinsPerso = []; #[ORM\Column(name: 'notesPerso', type: \Doctrine\DBAL\Types\Types::TEXT)] - private ?string $notesPerso = ''; + private ?string $notesPerso = null; public const FREINS_EMPLOI = [ 'garde_d_enfants', @@ -70,7 +70,7 @@ class Frein implements HasPerson, \Stringable private $freinsEmploi = []; #[ORM\Column(name: 'notesEmploi', type: \Doctrine\DBAL\Types\Types::TEXT)] - private ?string $notesEmploi = ''; + private ?string $notesEmploi = null; #[ORM\ManyToOne(targetEntity: Person::class)] #[Assert\NotNull] diff --git a/src/Bundle/ChillJobBundle/src/Entity/Rome/Appellation.php b/src/Bundle/ChillJobBundle/src/Entity/Rome/Appellation.php index d614ee03f..d08cf3da6 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/Rome/Appellation.php +++ b/src/Bundle/ChillJobBundle/src/Entity/Rome/Appellation.php @@ -26,10 +26,10 @@ class Appellation implements \Stringable private ?int $id = null; #[ORM\Column(name: 'code', type: \Doctrine\DBAL\Types\Types::STRING, length: 40, unique: true)] - private ?string $code = ''; + private ?string $code = null; #[ORM\Column(name: 'libelle', type: \Doctrine\DBAL\Types\Types::TEXT)] - private ?string $libelle = ''; + private ?string $libelle = null; #[ORM\ManyToOne(targetEntity: Metier::class, inversedBy: 'appellations', cascade: ['persist'])] private ?Metier $metier = null; diff --git a/src/Bundle/ChillJobBundle/src/Entity/Rome/Metier.php b/src/Bundle/ChillJobBundle/src/Entity/Rome/Metier.php index 31d29461a..2628b2f5f 100644 --- a/src/Bundle/ChillJobBundle/src/Entity/Rome/Metier.php +++ b/src/Bundle/ChillJobBundle/src/Entity/Rome/Metier.php @@ -27,10 +27,10 @@ class Metier private ?int $id = null; #[ORM\Column(name: 'libelle', type: \Doctrine\DBAL\Types\Types::TEXT)] - private ?string $libelle = ''; + private ?string $libelle = null; #[ORM\Column(name: 'code', type: \Doctrine\DBAL\Types\Types::STRING, length: 20, unique: true)] - private ?string $code = ''; + private ?string $code = null; /** * @var \Doctrine\Common\Collections\Collection diff --git a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflowStep.php b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflowStep.php index 24acc4f78..82bf81115 100644 --- a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflowStep.php +++ b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflowStep.php @@ -46,7 +46,7 @@ class EntityWorkflowStep private string $comment = ''; #[ORM\Column(type: \Doctrine\DBAL\Types\Types::TEXT)] - private ?string $currentStep = ''; + private ?string $currentStep = null; #[ORM\Column(type: \Doctrine\DBAL\Types\Types::JSON)] private array $destEmail = [];