Fix: logic exception thrown instead of a NotFoundHttpException

This commit is contained in:
kphoen 2012-11-23 19:53:26 +00:00
parent 1aae1fc96b
commit aedd75f16d

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();
}
}