Skip to content
Browse files

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

Fix: use getFirst() instead of first()
  • Loading branch information...
2 parents 4986cc4 + df64c21 commit 8dc2bec53d5399252f425d4a4f47ddf417ea276d @willdurand willdurand committed Nov 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Request/ParamConverter/PropelParamConverter.php
View
2 Request/ParamConverter/PropelParamConverter.php
@@ -190,7 +190,7 @@ protected function findOneBy($classQuery, Request $request)
if (!$this->hasWith) {
return $query->findOne();
} else {
- return $query->find()->first();
+ return $query->find()->getFirst();
}
}

0 comments on commit 8dc2bec

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