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-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-01-15 16:30:44 +03:00
|
|
|
protected function _createParserResult($queryComponents, $tableToClassAliasMap, $isMixedQuery = false)
|
2009-01-14 00:56:43 +03:00
|
|
|
{
|
2009-01-22 22:38:10 +03:00
|
|
|
$parserResult = new \Doctrine\ORM\Query\ParserResultDummy();
|
2009-01-14 00:56:43 +03:00
|
|
|
$parserResult->setQueryComponents($queryComponents);
|
|
|
|
$parserResult->setTableToClassAliasMap($tableToClassAliasMap);
|
|
|
|
$parserResult->setMixedQuery($isMixedQuery);
|
|
|
|
return $parserResult;
|
|
|
|
}
|
2009-02-18 10:59:11 +03:00
|
|
|
}
|