Save cooridnates as GeoJSON in database

This commit is contained in:
Jannis Portmann 2021-07-16 11:00:02 +02:00
parent 4656be5a32
commit ddb815d1b4
5 changed files with 130 additions and 2 deletions

View file

@ -51,6 +51,11 @@ class Offering
*/
private $description;
/**
* @ORM\Column(type="object", nullable=true)
*/
private $coordinate;
public function getId(): ?int
{
return $this->id;
@ -132,4 +137,16 @@ class Offering
{
return (string) $this-getTitle();
}
public function getCoordinate()
{
return $this->coordinate;
}
public function setCoordinate($coordinate): self
{
$this->coordinate = $coordinate;
return $this;
}
}