Commit b121576f authored by guilhermeblanco's avatar guilhermeblanco

[2.0] Fixed DQL parser to use Query::HINT_FORCE_PARTIAL_LOAD instead of string.

parent 58a15786
......@@ -1414,7 +1414,7 @@ class Parser
if (
$this->_query->getHydrationMode() == Query::HYDRATE_OBJECT &&
! $this->_em->getConfiguration()->getAllowPartialObjects() &&
! $this->_query->getHint('doctrine.forcePartialLoad')
! $this->_query->getHint(Query::HINT_FORCE_PARTIAL_LOAD)
) {
throw DoctrineException::partialObjectsAreDangerous();
}
......
......@@ -341,7 +341,7 @@ class LanguageRecognitionTest extends \Doctrine\Tests\OrmTestCase
$this->_em->getConfiguration()->setAllowPartialObjects(false);
$this->parseDql('SELECT u.name FROM Doctrine\Tests\Models\CMS\CmsUser u', array(
'doctrine.forcePartialLoad' => false
\Doctrine\ORM\Query::HINT_FORCE_PARTIAL_LOAD => false
));
$this->_em->getConfiguration()->setAllowPartialObjects($oldValue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment