Save cooridnates as GeoJSON in database
This commit is contained in:
parent
4656be5a32
commit
ddb815d1b4
5 changed files with 130 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue