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
14 lines (10 loc) • 682 B
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\Language" table="language">
<id name="languageCode" type="integer" column="id">
<generator strategy="IDENTITY"/>
</id>
<field name="code" type="string" column="code" length="5" nullable="false"/>
<field name="name" type="string" column="name" length="100" nullable="false"/>
</entity>
</doctrine-mapping>