add birthday to persons entity
This commit is contained in:
parent
ffc57cdcf2
commit
44625b9686
|
@ -69,6 +69,8 @@ class PersonsController extends AbstractController
|
|||
$person->setNikename($params['nikename']);
|
||||
if(array_key_exists('name',$params))
|
||||
$person->setName($params['name']);
|
||||
if(array_key_exists('birthday',$params))
|
||||
$person->setBirthday($params['birthday']);
|
||||
if(array_key_exists('tel',$params))
|
||||
$person->setTel($params['tel']);
|
||||
if(array_key_exists('address',$params))
|
||||
|
|
|
@ -107,6 +107,9 @@ class Person
|
|||
#[ORM\OneToMany(mappedBy: 'Person', targetEntity: StoreroomTicket::class)]
|
||||
private Collection $storeroomTickets;
|
||||
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $birthday = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->hesabdariRows = new ArrayCollection();
|
||||
|
@ -527,4 +530,16 @@ class Person
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getBirthday(): ?string
|
||||
{
|
||||
return $this->birthday;
|
||||
}
|
||||
|
||||
public function setBirthday(?string $birthday): static
|
||||
{
|
||||
$this->birthday = $birthday;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue