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:
kphoen 2012-10-31 19:33:12 +01:00
parent 94c0d895f1
commit bc15b92757

View file

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