HydrationTestCase.php 825B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Doctrine\Tests\ORM\Hydration;
  3. require_once __DIR__ . '/../../TestInit.php';
  4. use Doctrine\ORM\Query\ParserResult;
  5. use Doctrine\ORM\Query\Parser;
  6. class HydrationTestCase extends \Doctrine\Tests\OrmTestCase
  7. {
  8. protected $_em;
  9. protected function setUp()
  10. {
  11. parent::setUp();
  12. $this->_em = $this->_getTestEntityManager();
  13. }
  14. /** Helper method */
  15. protected function _createParserResult($resultSetMapping, $isMixedQuery = false)
  16. {
  17. $parserResult = new ParserResult;
  18. $parserResult->setResultSetMapping($resultSetMapping);
  19. //$parserResult->setDefaultQueryComponentAlias(key($queryComponents));
  20. //$parserResult->setTableAliasMap($tableToClassAliasMap);
  21. $parserResult->setMixedQuery($isMixedQuery);
  22. return $parserResult;
  23. }
  24. }