mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
quick fix for phonenumber alt on person
This commit is contained in:
parent
db4b0b104b
commit
e9236875d2
@ -13,6 +13,7 @@ namespace Chill\PersonBundle\Entity;
|
||||
|
||||
use DateTime;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use libphonenumber\PhoneNumber;
|
||||
|
||||
/**
|
||||
* Person Phones.
|
||||
@ -51,9 +52,9 @@ class PersonPhone
|
||||
private Person $person;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", length=40, nullable=false)
|
||||
* @ORM\Column(type="phone_number", nullable=false)
|
||||
*/
|
||||
private string $phonenumber = '';
|
||||
private ?PhoneNumber $phonenumber = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", length=40, nullable=true)
|
||||
@ -85,7 +86,7 @@ class PersonPhone
|
||||
return $this->person;
|
||||
}
|
||||
|
||||
public function getPhonenumber(): string
|
||||
public function getPhonenumber(): ?PhoneNumber
|
||||
{
|
||||
return $this->phonenumber;
|
||||
}
|
||||
@ -115,7 +116,7 @@ class PersonPhone
|
||||
$this->person = $person;
|
||||
}
|
||||
|
||||
public function setPhonenumber(string $phonenumber): void
|
||||
public function setPhonenumber(?PhoneNumber $phonenumber): void
|
||||
{
|
||||
$this->phonenumber = $phonenumber;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user