Skip to content

Commit

Permalink
Merge pull request #1430 from michael-lavaveshkul/master
Browse files Browse the repository at this point in the history
"INSTANCE OF" example doesn't match description.
  • Loading branch information
Bill Schaller committed Jun 18, 2015
2 parents 37a409a + 073f570 commit 6b3056f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/reference/inheritance-mapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 6b3056f

Please sign in to comment.