2009-01-14 00:56:43 +03:00
|
|
|
<?php
|
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
namespace Doctrine\Tests\ORM\Hydration;
|
|
|
|
|
2009-01-24 19:56:44 +03:00
|
|
|
require_once __DIR__ . '/../../TestInit.php';
|
2009-01-14 00:56:43 +03:00
|
|
|
|
2009-03-28 23:59:07 +03:00
|
|
|
use Doctrine\ORM\Query\ParserResult;
|
|
|
|
use Doctrine\ORM\Query\Parser;
|
|
|
|
|
2009-01-22 22:38:10 +03:00
|
|
|
class HydrationTest extends \Doctrine\Tests\OrmTestCase
|
2009-01-14 00:56:43 +03:00
|
|
|
{
|
|
|
|
protected $_em;
|
|
|
|
|
|
|
|
protected function setUp()
|
|
|
|
{
|
|
|
|
parent::setUp();
|
|
|
|
$this->_em = $this->_getTestEntityManager();
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Helper method */
|
2009-04-09 22:12:48 +04:00
|
|
|
protected function _createParserResult($resultSetMapping, $isMixedQuery = false)
|
2009-01-14 00:56:43 +03:00
|
|
|
{
|
2009-04-09 22:12:48 +04:00
|
|
|
$parserResult = new ParserResult;
|
|
|
|
$parserResult->setResultSetMapping($resultSetMapping);
|
|
|
|
//$parserResult->setDefaultQueryComponentAlias(key($queryComponents));
|
|
|
|
//$parserResult->setTableAliasMap($tableToClassAliasMap);
|
2009-01-14 00:56:43 +03:00
|
|
|
$parserResult->setMixedQuery($isMixedQuery);
|
|
|
|
return $parserResult;
|
|
|
|
}
|
2009-02-18 10:59:11 +03:00
|
|
|
}
|