Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: logic exception thrown instead of a NotFoundHttpException

  • Loading branch information...
commit aedd75f16d9eb84b7e552d375a6c21aa44522dec 1 parent 1aae1fc
@K-Phoen K-Phoen authored
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();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.