1
0
mirror of synced 2025-02-09 00:39:25 +03:00

Updated "INSTANCE OF" example code.

This commit is contained in:
michael-lavaveshkul 2015-06-17 22:15:17 -07:00
parent 37a409aa1f
commit 073f570c67

View File

@ -601,5 +601,5 @@ Querying for the staffs without getting any technicians can be achieved by this
.. code-block:: 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();