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