Don't use primary key for offers
This commit is contained in:
parent
539b7edffe
commit
d190971718
8 changed files with 65 additions and 15 deletions
|
@ -62,6 +62,11 @@ class Offering
|
|||
*/
|
||||
private $lng;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=13)
|
||||
*/
|
||||
private $urlId;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
|
@ -141,7 +146,7 @@ class Offering
|
|||
|
||||
public function __toString(): string
|
||||
{
|
||||
return (string) $this->getTitle();
|
||||
return (string) $this-getTitle();
|
||||
}
|
||||
|
||||
public function getCoordinate(): ?Coordinate
|
||||
|
@ -158,4 +163,16 @@ class Offering
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getUrlId(): ?string
|
||||
{
|
||||
return $this->urlId;
|
||||
}
|
||||
|
||||
public function setUrlId(string $urlId): self
|
||||
{
|
||||
$this->urlId = $urlId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
Reference in a new issue