1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Fixed name colision.

This commit is contained in:
Roger Llopart Pla 2013-07-04 08:29:46 +00:00
parent 91638aadcf
commit 9f2994f462

View File

@ -143,7 +143,7 @@ class PaginationTest extends \Doctrine\Tests\OrmFunctionalTestCase
{ {
$dql = "SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u"; $dql = "SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u";
$query = $this->_em->createQuery($dql); $query = $this->_em->createQuery($dql);
$query->setHint(Query::HINT_CUSTOM_TREE_WALKERS, array('Doctrine\Tests\ORM\Functional\CustomTreeWalker')); $query->setHint(Query::HINT_CUSTOM_TREE_WALKERS, array('Doctrine\Tests\ORM\Functional\CustomPaginationTestTreeWalker'));
$paginator = new Paginator($query, true); $paginator = new Paginator($query, true);
$paginator->setUseOutputWalkers(false); $paginator->setUseOutputWalkers(false);
@ -179,7 +179,7 @@ class PaginationTest extends \Doctrine\Tests\OrmFunctionalTestCase
} }
} }
class CustomTreeWalker extends Query\TreeWalkerAdapter class CustomPaginationTestTreeWalker extends Query\TreeWalkerAdapter
{ {
public function walkSelectStatement(Query\AST\SelectStatement $selectStatement) public function walkSelectStatement(Query\AST\SelectStatement $selectStatement)
{ {