Skip to content

Instantly share code, notes, and snippets.

@doctrinebot
Created December 13, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doctrinebot/86af8d11c938e1967c01 to your computer and use it in GitHub Desktop.
Save doctrinebot/86af8d11c938e1967c01 to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DDC-806 - https://github.com/doctrine/doctrine2/issues/5323
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="Animal" inheritance-type="JOINED">
<discriminator-column name="type" type="string" />
<discriminator-map>
<discriminator-mapping value="cat" class="Cat" />
</discriminator-map>
<id name="id" type="integer" />
</entity>
<entity name="Cat">
<field name="can_has_cheezburgers" type="boolean" />
</entity>
</doctrine-mapping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment