Add hidden field ordering for postgresql

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.
Revert "Add hidden field ordering for postgresql"

This reverts commit 3e8796f78188e193aac7386b38b7e17da3df5718.
Add test for postgresql hidden scalar sorting
Fixed postgresql hidden scalar sort
Implement QuoteStrategy on SqlWalker walkRangeVariableDeclaration

Based on:
http://www.doctrine-project.org/jira/browse/DDC-1845
https://github.com/doctrine/doctrine2/commit/cb72219b118c158c9b5344c4b81ff2b1a9149ab0
Adding simple test to ensure quoting of table names still functions.  Note: the funtionality of this change won't be noticiable unless a custom quote strategy is implemented
updating sql walker to use quote strategy in joins
updating sql walker to use quote strategy in joins
Fix DDC-2494
small optimization
drop useless support for associations
Merge pull request #690 from FabioBatSilva/DDC-2494

[DDC-2494] Apply type conversion to meta columns
Adding failing test for DDC-2214

Parameters being bound to an SQL query should have the same type as
the identifier of the objects being bound to the placeholders of a
DQL query - this is currently broken with proxies, as this test
demonstrates.
Merge pull request #693 from doctrine/hotfix/DDC-2214

Adding failing test for DDC-2214
Merge pull request #688 from sellingsource/master

Implement QuoteStrategy on SqlWalker walkRangeVariableDeclaration
Fix DDC-2478
Implemented support for RepositoryFactory.
Merge pull request #694 from FabioBatSilva/DDC-2478

[DDC-2478] Support null association comparison
Fixed wrong interface.
Reducing dependency on RepositoryFactory by providing EntityManager as a getRepository argument.