Open r8or0pz opened 5 years ago
When looking at:
INSERT INTO geo_point (address, coordinates) VALUES ('Test', 'POINT(-73.976683 40.760381)');
It seems the POINT is handed over as a string, it should probably be:
INSERT INTO geo_point (address, coordinates) VALUES ('Test', POINT(-73.976683 40.760381));
Did you register the types and functions as done here:
I have found the reason. I use custom Quote Strategy class which adds quotes to table fields. Inspite it works with fields, somehow it affects values also. Here is the class: https://gist.github.com/lngphp/a6e9a5de1287604ad4ffb9d25c1abcb2
To be more specific, QuoteStrategy::getColumnName() is the reason.
So this issue can be closed then?
How do I store POINT type?
Result query:
My Entity:
This is how I store it: