We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6a4796 + ca1bf71 commit 494f0b6Copy full SHA for 494f0b6
Doctrine/ORM/GeocoderListener.php
@@ -100,7 +100,7 @@ private function geocodeEntity($entity)
100
101
$results = $this->geocoder->geocodeQuery(GeocodeQuery::create($address));
102
103
- if (!empty($results)) {
+ if (!$results->isEmpty()) {
104
$result = $results->first();
105
$metadata->latitudeProperty->setValue($entity, $result->getCoordinates()->getLatitude());
106
$metadata->longitudeProperty->setValue($entity, $result->getCoordinates()->getLongitude());
0 commit comments