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:
William Durand 2012-10-31 14:15:18 -07:00
commit f4c290ffcd

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