Merge pull request #196 from K-Phoen/fix-param-converter-logic-exception

Fix: logic exception thrown instead of a NotFoundHttpException
This commit is contained in:
William Durand 2012-11-23 16:17:40 -08:00
commit 4986cc497f

View file

@ -190,9 +190,7 @@ class PropelParamConverter implements ParamConverterInterface
if (!$this->hasWith) {
return $query->findOne();
} else {
$results = $query->find();
return reset($results);
return $query->find()->first();
}
}