1
0
mirror of synced 2025-02-08 00:09:26 +03:00

Add yml example to single table inheritance

This commit is contained in:
Richard Shank 2014-05-27 07:47:07 -07:00
parent 20e47ae52d
commit edaeaf48a8

View File

@ -81,6 +81,8 @@ discriminator column is used.
Example: Example:
.. configuration-block::
.. code-block:: php .. code-block:: php
<?php <?php
@ -105,6 +107,21 @@ Example:
// ... // ...
} }
.. code-block:: yaml
MyProject\Model\Person:
type: entity
inheritanceType: SINGLE_TABLE
discriminatorColumn:
name: discr
type: string
discriminatorMap:
person: Person
employee: Employee
MyProject\Model\Employee:
type: entity
Things to note: Things to note: