mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
fixes to allow for firstname value of null
This commit is contained in:
@@ -198,13 +198,10 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
private ?string $email = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="firstname", type="string", length=255)
|
||||
* @Assert\Length(min="2")
|
||||
* @Assert\NotNull
|
||||
* @Assert\NotBlank
|
||||
* @ORM\Column(name="firstname", type="string", length=255, nullable=true)
|
||||
* @Groups({"read", "write", "docgen:read", "docgen:read:3party:parent"})
|
||||
*/
|
||||
private ?string $firstname = '';
|
||||
private ?string $firstname = null;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
@@ -463,7 +460,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
public function getFirstname(): string
|
||||
public function getFirstname(): ?string
|
||||
{
|
||||
return $this->firstname;
|
||||
}
|
||||
|
Reference in New Issue
Block a user