1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Add NOT INSTANCE OF use-case to DQL manual

This commit is contained in:
Benjamin Eberlei 2010-09-27 22:59:50 +02:00
parent e8eed2ebae
commit d2efb5bbc8

View File

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