Add NOT INSTANCE OF use-case to DQL manual
This commit is contained in:
parent
e8eed2ebae
commit
d2efb5bbc8
@ -277,6 +277,7 @@ Get all instances of a specific type, for use with inheritance hierachies:
|
|||||||
[php]
|
[php]
|
||||||
$query = $em->createQuery('SELECT u FROM Doctrine\Tests\Models\Company\CompanyPerson u WHERE u INSTANCE OF Doctrine\Tests\Models\Company\CompanyEmployee');
|
$query = $em->createQuery('SELECT u FROM Doctrine\Tests\Models\Company\CompanyPerson u WHERE u INSTANCE OF Doctrine\Tests\Models\Company\CompanyEmployee');
|
||||||
$query = $em->createQuery('SELECT u FROM Doctrine\Tests\Models\Company\CompanyPerson u WHERE u INSTANCE OF ?1');
|
$query = $em->createQuery('SELECT u FROM Doctrine\Tests\Models\Company\CompanyPerson u WHERE u INSTANCE OF ?1');
|
||||||
|
$query = $em->createQuery('SELECT u FROM Doctrine\Tests\Models\Company\CompanyPerson u WHERE u NOT INSTANCE OF ?1');
|
||||||
|
|
||||||
++++ Partial Object Syntax
|
++++ Partial Object Syntax
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user