From a4aa18f7967e7e2f5afa754eb8fe13528f8761c9 Mon Sep 17 00:00:00 2001 From: Kristopher Wilson Date: Mon, 30 Mar 2015 09:24:46 -0400 Subject: [PATCH] test case for joined table inheritance pagination --- tests/Doctrine/Tests/ORM/Functional/PaginationTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 */