From 692c35e7e2b72b28697532cb677f3625f74179ab Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 31 Oct 2010 08:13:59 +0100 Subject: [PATCH] DDC-826, DDC-841, DDC-671 - Added another testcase to verify mapped superclass + association dql alias generation --- .../Tests/ORM/Query/SelectSqlGenerationTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php b/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php index 2e0ff090d..642637116 100644 --- a/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php +++ b/tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php @@ -832,6 +832,17 @@ class SelectSqlGenerationTest extends \Doctrine\Tests\OrmTestCase $config->setCustomNumericFunctions(array()); } + + /** + * @group DDC-826 + */ + public function testMappedSuperclassAssociationJoin() + { + $this->assertSqlGeneration( + 'SELECT f FROM Doctrine\Tests\Models\DirectoryTree\File f JOIN f.parentDirectory d WHERE f.id = ?1', + 'SELECT f0_.id AS id0, f0_.extension AS extension1, f0_.name AS name2 FROM File f0_ INNER JOIN Directory d1_ ON f0_.parentDirectory_id = d1_.id WHERE f0_.id = ?' + ); + } }