remove unnecessary constraints from 3party properties acronym and nameCompany

This commit is contained in:
Julie Lenaerts 2024-05-29 11:37:42 +02:00
parent f60a595ab6
commit 3fd6e52e9d

View File

@ -85,7 +85,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
/** /**
* [fr] Sigle. * [fr] Sigle.
*/ */
#[Assert\Length(min: 2)] // #[Assert\Length(min: 2)]
#[Groups(['read', 'write', 'docgen:read', 'docgen:read:3party:parent'])] #[Groups(['read', 'write', 'docgen:read', 'docgen:read:3party:parent'])]
#[ORM\Column(name: 'acronym', type: \Doctrine\DBAL\Types\Types::STRING, length: 64, nullable: true)] #[ORM\Column(name: 'acronym', type: \Doctrine\DBAL\Types\Types::STRING, length: 64, nullable: true)]
private ?string $acronym = ''; private ?string $acronym = '';
@ -184,7 +184,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
/** /**
* [fr] Raison sociale. * [fr] Raison sociale.
*/ */
#[Assert\Length(min: 3)] // #[Assert\Length(min: 3)]
#[Groups(['read', 'write', 'docgen:read', 'docgen:read:3party:parent'])] #[Groups(['read', 'write', 'docgen:read', 'docgen:read:3party:parent'])]
#[ORM\Column(name: 'name_company', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)] #[ORM\Column(name: 'name_company', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $nameCompany = ''; private ?string $nameCompany = '';