mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fixes to allow for firstname value of null
This commit is contained in:
parent
ae555fed00
commit
13a7d791a1
@ -198,13 +198,10 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
private ?string $email = null;
|
private ?string $email = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(name="firstname", type="string", length=255)
|
* @ORM\Column(name="firstname", type="string", length=255, nullable=true)
|
||||||
* @Assert\Length(min="2")
|
|
||||||
* @Assert\NotNull
|
|
||||||
* @Assert\NotBlank
|
|
||||||
* @Groups({"read", "write", "docgen:read", "docgen:read:3party:parent"})
|
* @Groups({"read", "write", "docgen:read", "docgen:read:3party:parent"})
|
||||||
*/
|
*/
|
||||||
private ?string $firstname = '';
|
private ?string $firstname = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
@ -463,7 +460,7 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface
|
|||||||
return $this->email;
|
return $this->email;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getFirstname(): string
|
public function getFirstname(): ?string
|
||||||
{
|
{
|
||||||
return $this->firstname;
|
return $this->firstname;
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ class ThirdPartyType extends AbstractType
|
|||||||
$builder
|
$builder
|
||||||
->add('firstname', TextType::class, [
|
->add('firstname', TextType::class, [
|
||||||
'label' => 'firstname',
|
'label' => 'firstname',
|
||||||
'required' => true,
|
'required' => false,
|
||||||
])
|
])
|
||||||
->add('civility', PickCivilityType::class, [
|
->add('civility', PickCivilityType::class, [
|
||||||
'label' => 'thirdparty.Civility',
|
'label' => 'thirdparty.Civility',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user