1
0
mirror of synced 2024-12-05 03:06:05 +03:00

test case for joined table inheritance pagination

This commit is contained in:
Kristopher Wilson 2015-03-30 09:24:46 -04:00 committed by Marco Pivetta
parent 010d52378c
commit a4aa18f796

View File

@ -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
*/