Пример #1
-1
 public function before_save(\Orm\Model $obj)
 {
     $latlng = $obj->{$this->_property};
     if (!$latlng) {
         return;
     }
     $obj->set($this->_property, \DB::expr('GeomFromText("POINT(' . $latlng[0] . ' ' . $latlng[1] . ')")'));
 }