Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 1.0.0BETA2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
"Near" statement does not work for me. The following code returns all cities from collection:
$cities = $this->dm->createQuery('City')
->field('coordinates')->near(50, 60)
->execute();
Could you please fix it?
I had the same issue on 1.0.0.BETA3.
The solution was to change the query up a little.
$places = $this->dm->createQueryBuilder('\Application\Event')->field('latitude')->near(50)->field('longitude')->near(60)->getQuery()->execute();http://stackoverflow.com/a/9015906/179335