commit
35511db4da
@ -116,6 +116,9 @@ Things to note:
|
|||||||
the case above a value of "person" identifies a row as being of
|
the case above a value of "person" identifies a row as being of
|
||||||
type ``Person`` and "employee" identifies a row as being of type
|
type ``Person`` and "employee" identifies a row as being of type
|
||||||
``Employee``.
|
``Employee``.
|
||||||
|
- All entity classes that is part of the mapped entity hierarchy
|
||||||
|
(including the topmost class) should be specified in the
|
||||||
|
@DiscriminatorMap. In the case above Person class included.
|
||||||
- The names of the classes in the discriminator map do not need to
|
- The names of the classes in the discriminator map do not need to
|
||||||
be fully qualified if the classes are contained in the same
|
be fully qualified if the classes are contained in the same
|
||||||
namespace as the entity class on which the discriminator map is
|
namespace as the entity class on which the discriminator map is
|
||||||
@ -576,4 +579,4 @@ Querying for the staffs without getting any technicians can be achieved by this
|
|||||||
|
|
||||||
<?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 INSTANCE OF MyProject\Model\Staff");
|
||||||
$staffs = $query->getResult();
|
$staffs = $query->getResult();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user