Skip to content
Browse files

Merge pull request #196 from K-Phoen/fix-param-converter-logic-exception

Fix: logic exception thrown instead of a NotFoundHttpException
  • Loading branch information...
2 parents 1aae1fc + aedd75f commit 4986cc497f68d77a2732e926e88d1c8624e2087d @willdurand willdurand committed Nov 23, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 Request/ParamConverter/PropelParamConverter.php
View
4 Request/ParamConverter/PropelParamConverter.php
@@ -190,9 +190,7 @@ protected function findOneBy($classQuery, Request $request)
if (!$this->hasWith) {
return $query->findOne();
} else {
- $results = $query->find();
-
- return reset($results);
+ return $query->find()->first();
}
}

0 comments on commit 4986cc4

Please sign in to comment.
Something went wrong with that request. Please try again.