Jira issue originally created by user @beberlei:
This issue is created automatically through a Github pull request on behalf of denkiryokuhatsuden:
In postgresql environment, when some hidden fields are used in orderBy clause,
they're not property added because $rsm->scalarMappings don't have information about them.
This change fixes above.
I'm afraid I'm not sure which branch this will be merged, but anyway here's a patch.
Comment created by @doctrinebot:
A related Github Pull-Request [GH-640] was closed:
Issue was closed with resolution "Fixed"