fixture for addressReference - WIP

This commit is contained in:
nobohan
2021-05-03 11:18:31 +02:00
parent c5faa0b99d
commit a1895ec65f
4 changed files with 160 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ namespace Chill\MainBundle\Entity;
use Chill\MainBundle\Entity\AddressReferenceRepository;
use Doctrine\ORM\Mapping as ORM;
use Chill\MainBundle\Doctrine\Model\Point;
/**
* @ORM\Entity(repositoryClass=AddressReferenceRepository::class)
@@ -52,10 +53,15 @@ class AddressReference
private $source;
/**
* @ORM\Column(type="string", length=255)
* A geospatial field storing the coordinates of the Address
*
* @var Point
*
* @ORM\Column(type="point")
*/
private $point;
public function getId(): ?int
{
return $this->id;
@@ -133,12 +139,12 @@ class AddressReference
return $this;
}
public function getPoint(): ?string
public function getPoint(): ?Point
{
return $this->point;
}
public function setPoint(string $point): self
public function setPoint(?Point $point): self
{
$this->point = $point;