Fix: logic exception thrown instead of a NotFoundHttpException
This commit is contained in:
parent
1aae1fc96b
commit
aedd75f16d
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue