1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests/Doctrine/Tests/ORM/Hydration/HydrationTestCase.php

30 lines
825 B
PHP
Raw Normal View History

<?php
namespace Doctrine\Tests\ORM\Hydration;
require_once __DIR__ . '/../../TestInit.php';
use Doctrine\ORM\Query\ParserResult;
use Doctrine\ORM\Query\Parser;
2009-06-15 22:25:47 +04:00
class HydrationTestCase extends \Doctrine\Tests\OrmTestCase
{
protected $_em;
protected function setUp()
{
parent::setUp();
$this->_em = $this->_getTestEntityManager();
}
/** Helper method */
protected function _createParserResult($resultSetMapping, $isMixedQuery = false)
{
$parserResult = new ParserResult;
$parserResult->setResultSetMapping($resultSetMapping);
//$parserResult->setDefaultQueryComponentAlias(key($queryComponents));
//$parserResult->setTableAliasMap($tableToClassAliasMap);
$parserResult->setMixedQuery($isMixedQuery);
return $parserResult;
}
}