Fix: using the "with" option in ParamConverters triggered a notice
The following notice was triggered: Runtime Notice: Only variables should be passed by reference in /home/vagrant/www/project/vendor/propel/propel-bundle/Propel/PropelBundle/Request/ParamConverter/PropelParamConverter.php line 193
This commit is contained in:
parent
94c0d895f1
commit
bc15b92757
|
@ -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