Fix possible null values or not null values in some entity / string properties

This commit is contained in:
2023-10-17 23:15:06 +02:00
parent d54d34be7c
commit 9ec5a633ad
10 changed files with 30 additions and 29 deletions

View File

@@ -213,7 +213,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
*
* @Groups({"read", "write", "docgen:read", "docgen:read:3party:parent"})
*/
private string $firstname = '';
private ?string $firstname = '';
/**
* @ORM\Column(name="id", type="integer")
@@ -231,7 +231,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
*
* @Groups({"write", "docgen:read", "docgen:read:3party:parent"})
*/
private ?string $kind = '';
private string $kind = '';
/**
* @ORM\Column(name="name", type="string", length=255)
@@ -244,7 +244,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
*
* @Groups({"read", "write", "docgen:read", "docgen:read:3party:parent"})
*/
private ?string $name = '';
private string $name = '';
/**
* [fr] Raison sociale.
@@ -770,7 +770,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
public function setKind(?string $kind): ThirdParty
{
$this->kind = $kind;
$this->kind = (string) $kind;
return $this;
}