test case for joined table inheritance pagination
This commit is contained in:
parent
010d52378c
commit
a4aa18f796
@ -22,6 +22,7 @@ class PaginationTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
{
|
{
|
||||||
$this->useModelSet('cms');
|
$this->useModelSet('cms');
|
||||||
$this->useModelSet('pagination');
|
$this->useModelSet('pagination');
|
||||||
|
$this->useModelSet('company');
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->populate();
|
$this->populate();
|
||||||
}
|
}
|
||||||
@ -461,6 +462,15 @@ class PaginationTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
$this->assertCount(3, $paginator->getIterator());
|
$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
|
* @dataProvider useOutputWalkers
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user