Saving spatial data in CakePHP
I have a problem saving spatial data in CakePHP with saveAll(). I really dont want to write the query manually ( Handling spatial data in CakePHP ) because there are number of models being saved. Also I read this CakePHP and MySQL Spatial Extension but when I try to do the same, $db->expression() returns an stdClass. This is the returned object printed out: stdClass Object ( [type] => expression [value] => GeomFromText('POINT(48.18879 18.527579999999944)') ) If I use this object the way it is used in CakePHP and MySQL Spatial Extension and try to save it with saveAll() I get this error: Error