From 660d83c26238cb4cf41519b230d720d27d98957d Mon Sep 17 00:00:00 2001 From: MAXakaWIZARD Date: Wed, 6 Jan 2016 19:36:03 +0200 Subject: [PATCH] Fix wrong example in docs --- Resources/doc/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Resources/doc/index.md b/Resources/doc/index.md index 1f3204f4..ef3660f2 100644 --- a/Resources/doc/index.md +++ b/Resources/doc/index.md @@ -94,8 +94,9 @@ information in your development environment, for instance: ->geocode($request->server->get('REMOTE_ADDR')); // Find the 5 nearest objects (15km) from the current user. + $address = $result->first(); $objects = ObjectQuery::create() - ->filterByDistanceFrom($result->getLatitude(), $result->getLongitude(), 15) + ->filterByDistanceFrom($address->getLatitude(), $address->getLongitude(), 15) ->limit(5) ->find();