Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of Ocramius:
This PR tries to fix DDC-2953 (http://www.doctrine-project.org/jira/browse/[DDC-2953](http://www.doctrine-project.org/jira/browse/DDC-2953)).
tl;dr: when the results are not sorted by root entity identifier, the array hydrator swallows some output.
Comment created by @doctrinebot:
A related Github Pull-Request [GH-933] was closed:
Comment created by @ocramius:
Provided fix is invalid. A fix would require a major BC break.
Issue was closed with resolution "Invalid"