Permalink
Browse files

Merge pull request #186 from K-Phoen/fix-param-converter-with

Fix: using the "with" option in ParamConverters triggered a notice
  • Loading branch information...
willdurand committed Oct 31, 2012
2 parents 94c0d89 + bc15b92 commit f4c290ffcdb70ac8e90ffdb77a112f1b059663b5
Showing with 2 additions and 1 deletion.
  1. +2 −1 Request/ParamConverter/PropelParamConverter.php
@@ -190,7 +190,8 @@ protected function findOneBy($classQuery, Request $request)
if (!$this->hasWith) {
return $query->findOne();
} else {
- return reset($query->find());
+ $results = $query->find();
+ return reset($results);
}
}

0 comments on commit f4c290f

Please sign in to comment.