diff --git a/tests/Doctrine/Tests/ORM/Functional/PaginationTest.php b/tests/Doctrine/Tests/ORM/Functional/PaginationTest.php index 4a2449654..50af30297 100644 --- a/tests/Doctrine/Tests/ORM/Functional/PaginationTest.php +++ b/tests/Doctrine/Tests/ORM/Functional/PaginationTest.php @@ -22,6 +22,7 @@ class PaginationTest extends \Doctrine\Tests\OrmFunctionalTestCase { $this->useModelSet('cms'); $this->useModelSet('pagination'); + $this->useModelSet('company'); parent::setUp(); $this->populate(); } @@ -461,6 +462,15 @@ class PaginationTest extends \Doctrine\Tests\OrmFunctionalTestCase $this->assertCount(3, $paginator->getIterator()); } + public function testJoinedClassTableInheritance() + { + $dql = 'SELECT c FROM Doctrine\Tests\Models\Company\CompanyManager c ORDER BY c.startDate'; + $query = $this->_em->createQuery($dql); + + $paginator = new Paginator($query); + $this->assertCount(1, $paginator->getIterator()); + } + /** * @dataProvider useOutputWalkers */