Merge pull request #186 from K-Phoen/fix-param-converter-with
Fix: using the "with" option in ParamConverters triggered a notice
This commit is contained in:
commit
f4c290ffcd
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue