1
0
mirror of synced 2024-12-14 07:06:04 +03:00

DDC-826, DDC-841, DDC-671 - Added another testcase to verify mapped superclass + association dql alias generation

This commit is contained in:
Benjamin Eberlei 2010-10-31 08:13:59 +01:00
parent 4804f623c1
commit 692c35e7e2

View File

@ -832,6 +832,17 @@ class SelectSqlGenerationTest extends \Doctrine\Tests\OrmTestCase
$config->setCustomNumericFunctions(array()); $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 = ?'
);
}
} }