Resolve "Separate long lat from point for reports generation" #1030

Merged
jankstudio merged 2 commits from 186-separate-long-lat-from-point-for-reports-generation into master 2019-02-21 07:40:37 +00:00
Showing only changes of commit bc8d01dc6a - Show all commits

View file

@ -64,6 +64,18 @@ class JobOrder
*/
protected $coordinates;
// we split up coordinates into long / lat for reports purposes
/**
* @ORM\Column(type="decimal", precision=11, scale=8)
*/
protected $coord_long;
// we split up coordinates into long / lat for reports purposes
/**
* @ORM\Column(type="decimal", precision=11, scale=8)
*/
protected $coord_lat;
// is it an advanced order (future date)
/**
* @ORM\Column(type="boolean")
@ -350,6 +362,9 @@ class JobOrder
public function setCoordinates(Point $point)
{
$this->coordinates = $point;
$this->coord_lat = $point->getLatitude();
$this->coord_long = $point->getLongitude();
return $this;
}