mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Fix possible null values or not null values in some entity / string properties
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user