mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 04:23:49 +00:00
Adding a second phone number to thirdparty entity
This commit is contained in:
@@ -209,6 +209,11 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
|
||||
#[PhonenumberConstraint(type: 'any')]
|
||||
private ?PhoneNumber $telephone = null;
|
||||
|
||||
#[Groups(['read', 'write', 'docgen:read', 'docgen:read:3party:parent'])]
|
||||
#[ORM\Column(name: 'telephone2', type: 'phone_number', nullable: true)]
|
||||
#[PhonenumberConstraint(type: 'any')]
|
||||
private ?PhoneNumber $telephone2 = null;
|
||||
|
||||
#[ORM\Column(name: 'types', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
|
||||
private ?array $thirdPartyTypes = [];
|
||||
|
||||
@@ -429,6 +434,11 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
|
||||
return $this->telephone;
|
||||
}
|
||||
|
||||
public function getTelephone2(): ?PhoneNumber
|
||||
{
|
||||
return $this->telephone2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get type.
|
||||
*/
|
||||
@@ -712,6 +722,13 @@ class ThirdParty implements TrackCreationInterface, TrackUpdateInterface, \Strin
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setTelephone2(?PhoneNumber $telephone2 = null): self
|
||||
{
|
||||
$this->telephone2 = $telephone2;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set type.
|
||||
*
|
||||
|
Reference in New Issue
Block a user