diff --git a/Request/ParamConverter/PropelParamConverter.php b/Request/ParamConverter/PropelParamConverter.php index 8e44916..33839a2 100644 --- a/Request/ParamConverter/PropelParamConverter.php +++ b/Request/ParamConverter/PropelParamConverter.php @@ -190,7 +190,8 @@ class PropelParamConverter implements ParamConverterInterface if (!$this->hasWith) { return $query->findOne(); } else { - return reset($query->find()); + $results = $query->find(); + return reset($results); } }