_em = $this->_getTestEntityManager(); } /** Helper method */ protected function _createParserResult($queryComponents, $tableToClassAliasMap, $isMixedQuery = false) { $parserResult = new ParserResult( '', array(/*queryComponent*/), array(/*tableAliasMap*/) ); //$parserResult = new \Doctrine\ORM\Query\ParserResult(); $parserResult->setQueryComponents($queryComponents); $parserResult->setDefaultQueryComponentAlias(key($queryComponents)); $parserResult->setTableAliasMap($tableToClassAliasMap); $parserResult->setMixedQuery($isMixedQuery); return $parserResult; } }