Add attributes above lat long properties
This commit is contained in:
@@ -4,6 +4,8 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Pcm\GeocodeBundle\Entity\Trait;
|
namespace Pcm\GeocodeBundle\Entity\Trait;
|
||||||
|
|
||||||
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows an entity to be mapped via latitude and longitude coordinates
|
* Allows an entity to be mapped via latitude and longitude coordinates
|
||||||
*
|
*
|
||||||
@@ -13,8 +15,10 @@ namespace Pcm\GeocodeBundle\Entity\Trait;
|
|||||||
*/
|
*/
|
||||||
trait MappableTrait
|
trait MappableTrait
|
||||||
{
|
{
|
||||||
|
#[ORM\Column(type: 'decimal', precision: 10, scale: 6, nullable: true)]
|
||||||
private ?float $latitude = null;
|
private ?float $latitude = null;
|
||||||
|
|
||||||
|
#[ORM\Column(type: 'decimal', precision: 10, scale: 6, nullable: true)]
|
||||||
private ?float $longitude = null;
|
private ?float $longitude = null;
|
||||||
|
|
||||||
public function getLatitude(): ?float
|
public function getLatitude(): ?float
|
||||||
|
|||||||
Reference in New Issue
Block a user