grunt-doctrine
Version:
Grunt plugin to convert doctrine xml annotations into backbone models and collections. Useful in conjunction with doctrine apigility. Includes option to scaffold an entire BBB application
18 lines (17 loc) • 1.02 kB
text/xml
<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="Db\Entity\Tax" table="tax">
<id name="taxId" type="integer" column="tax_id">
<generator strategy="IDENTITY"/>
</id>
<field name="name" type="string" column="name" length="255" nullable="false"/>
<field name="rate" type="integer" column="rate" nullable="false"/>
<field name="number" type="integer" column="number" nullable="false"/>
<field name="compound" type="integer" column="compound" nullable="false"/>
<many-to-one field="country" target-entity="Db\Entity\Country" fetch="LAZY">
<join-columns>
<join-column name="country_code" referenced-column-name="country_code"/>
</join-columns>
</many-to-one>
</entity>
</doctrine-mapping>