DDC-826, DDC-841, DDC-671 - Added another testcase to verify mapped superclass + association dql alias generation
This commit is contained in:
parent
4804f623c1
commit
692c35e7e2
@ -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 = ?'
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user