Adding tests that confirm that DDC-2844 is fixed
Adding tests to verify that dql aliases in criteria are correctly converted
Merge pull request #875 from doctrine/DDC-2844

Adding tests that confirm that DDC-2844 is fixed