From 6211009055212ab5cea22a85a52f90385ea6a644 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Thu, 14 Feb 2019 15:25:16 -0500 Subject: [PATCH] Remove Query::TYPE_GEO_LOCATION constant ODM removed support for geoNear commands in its query builder. Applications should use the $geoNear aggregation pipeline operator instead. --- lib/Doctrine/ODM/MongoDB/Query/Query.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/Doctrine/ODM/MongoDB/Query/Query.php b/lib/Doctrine/ODM/MongoDB/Query/Query.php index 604aa3ea9b..74a619dceb 100644 --- a/lib/Doctrine/ODM/MongoDB/Query/Query.php +++ b/lib/Doctrine/ODM/MongoDB/Query/Query.php @@ -50,11 +50,6 @@ class Query implements IteratorAggregate public const TYPE_DISTINCT = 9; public const TYPE_COUNT = 11; - /** - * @deprecated 1.1 Will be removed for 2.0 - */ - public const TYPE_GEO_LOCATION = 10; - public const HINT_REFRESH = 1; // 2 was used for HINT_SLAVE_OKAY, which was removed in 2.0 public const HINT_READ_PREFERENCE = 3;