1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

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

This commit is contained in:
guilhermeblanco 2009-07-22 05:06:06 +00:00
parent 58a157863e
commit b121576ff4
2 changed files with 2 additions and 2 deletions

View file

@ -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();
}

View file

@ -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);