Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Resources/xsl/doctrine-mapping.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<xsl:element name='entity' namespace='http://doctrine-project.org/schemas/orm/doctrine-mapping'>
<xsl:attribute name='name'><xsl:value-of select='$objectNamespace'/><xsl:value-of select='@name'/></xsl:attribute>
<xsl:apply-templates select='self::node()' mode='entityIdentifier'/>
<xsl:apply-templates select='orm' mode='tableAttribute'/>
<xsl:apply-templates select='fields/field'/>
<xsl:apply-templates select='fields/field' mode='fieldEntityReference'/>
</xsl:element>
Expand Down Expand Up @@ -64,6 +65,16 @@
-->
<xsl:template match='object[orm/field-defined[@name = "id"]]' mode='entityIdentifier'/>

<!--
Add a table attribute to the entity if available.
-->
<xsl:template match='orm' mode='tableAttribute'/>
<xsl:template match='orm[@table]' mode='tableAttribute'>
<xsl:attribute name='table'>
<xsl:value-of select='@table'/>
</xsl:attribute>
</xsl:template>

<!--
Add a field mapping to an entity.
-->
Expand Down