Setup PLZ field for user
This commit is contained in:
parent
4140b63da0
commit
853b570f0f
5 changed files with 61 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue