CakePHPã§Geometryåã使ã£ã¦ã¿ããã ä»åã座æ¨ãã¼ã¿ãæ ¼ç´ãããã«ã©ã åã'latlng'ã¨ããåã«ã¯Geometryã使ç¨ãã¾ããã ãã¼ãã«ã®ä½ææ¹æ³ã¯ãã¾ããããã¨ãã¦ãåé¡ã¯ãã¼ã¿ã®æ ¼ç´ãã©ããããã§ãã é常ã¯ãã¢ãã«ã®saveã¡ã½ããã使ç¨ããã¨æãã¾ãã saveã¡ã½ããã§ãã¾ãåºæ¥ãã°ããã£ãã®ã§ãããã©ããã¦ããã¾ããããªãã£ãã®ã§ãä»åã¯ã¢ãã«ã®å®è£ é¨åã§afterSaveã¡ã½ããããªã¼ãã¼ã©ã¤ããã¦ä½¿ããã¨ã«ãã¾ããã afterSaveã¡ã½ããã¯ãã¼ã¿ãä¿åãããå¾ã«å¼ã³åºãããã¡ã½ããã§ãã ãã®ã¡ã½ããã§ä»¥ä¸ã®ãããªã¯ã¨ãªãçºè¡ããããã«ãã¾ããã "UPDATE $tablename SET `latlng` = GeomFromText('POINT($lng $lat)') WHERE id = $id" $tablenam
{{#tags}}- {{label}}
{{/tags}}