From 3fd6e52e9d6ca57a80a9a7656486e40fc9bde2a8 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 29 May 2024 11:37:42 +0200 Subject: [PATCH] remove unnecessary constraints from 3party properties acronym and nameCompany --- src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php b/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php index 7fa3178fe..8e9d8435b 100644 --- a/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php +++ b/src/Bundle/ChillThirdPartyBundle/Entity/ThirdParty.php @@ -85,7 +85,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin /** * [fr] Sigle. */ - #[Assert\Length(min: 2)] +// #[Assert\Length(min: 2)] #[Groups(['read', 'write', 'docgen:read', 'docgen:read:3party:parent'])] #[ORM\Column(name: 'acronym', type: \Doctrine\DBAL\Types\Types::STRING, length: 64, nullable: true)] private ?string $acronym = ''; @@ -184,7 +184,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin /** * [fr] Raison sociale. */ - #[Assert\Length(min: 3)] +// #[Assert\Length(min: 3)] #[Groups(['read', 'write', 'docgen:read', 'docgen:read:3party:parent'])] #[ORM\Column(name: 'name_company', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)] private ?string $nameCompany = '';