Updated "INSTANCE OF" example code.
This commit is contained in:
parent
37a409aa1f
commit
073f570c67
@ -601,5 +601,5 @@ Querying for the staffs without getting any technicians can be achieved by this
|
|||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$query = $em->createQuery("SELECT staff FROM MyProject\Model\Staff staff WHERE staff INSTANCE OF MyProject\Model\Staff");
|
$query = $em->createQuery("SELECT staff FROM MyProject\Model\Staff staff WHERE staff NOT INSTANCE OF MyProject\Model\Technician");
|
||||||
$staffs = $query->getResult();
|
$staffs = $query->getResult();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user