Skip to content
Browse files

delete array_shift from GetSingleResultSubscriber, it mistake

  • Loading branch information...
1 parent a13cd62 commit 27863c3d9dc07d1ddbd2ab8a16752b14e9cfed4e @ghua committed Aug 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Event/GetSingleResultSubscriber.php
View
2 Event/GetSingleResultSubscriber.php
@@ -22,7 +22,7 @@ public function callbackFunction(ResponseEvent $event)
$data = $data->setMaxResults(1)->getSingleResult(ORMAbstractQuery::HYDRATE_ARRAY);
- $event->setData(array_shift($data));
+ $event->setData($data);
}
}

0 comments on commit 27863c3

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