[2.0] Fixed DQL parser to use Query::HINT_FORCE_PARTIAL_LOAD instead of string.
This commit is contained in:
parent
58a157863e
commit
b121576ff4
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue