Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit f4c290ffcdb70ac8e90ffdb77a112f1b059663b5 2 parents 94c0d89 + bc15b92
@willdurand willdurand authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Request/ParamConverter/PropelParamConverter.php
View
3  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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.