entity generator - ignore trait properties and methods
only use already existing reflections
Revert "only use already existing reflections"

This reverts commit bb5bdcf0f4ccd6fc83692490ec70a697c90573fb.
only check for traits when class exists
check if ReflectionClass::getTraits() method exists
fixed code duplication issue
added unit test
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
minor fixes
moved test entities from sandbox
skip test if php 5.3
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