Setup PLZ field for user

This commit is contained in:
Jannis Portmann 2021-06-14 14:09:44 +02:00
parent 4140b63da0
commit 853b570f0f
5 changed files with 61 additions and 1 deletions

View file

@ -59,6 +59,11 @@ class User implements UserInterface
*/
private $wishes;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $zipCode;
public function __construct()
{
$this->offerings = new ArrayCollection();
@ -229,4 +234,16 @@ class User implements UserInterface
return $this;
}
public function getZipCode(): ?int
{
return $this->zipCode;
}
public function setZipCode(?int $zipCode): self
{
$this->zipCode = $zipCode;
return $this;
}
}