Home > database >  Postgis comparators with Doctrine
Postgis comparators with Doctrine

Time:02-03

I got the next problem. I'm working with symfony, doctrine and postgis. I created new type "Point" on DBAL folder to work with Postgis-Point. I can insert and read it from DB. Now I'm triying to search using this column of point type and got the next error. Comparator not in "=, <>, != ..." of doctrine. I'm using "~=" of postgis to check if the point is equals. How can I add the postgis compartor to doctrine or how can I compare two points with DQL?

CodePudding user response:

I dont install any plugin. I solved it using native query.

  •  Tags:  
  • Related