UNPKG

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

11 lines (10 loc) 671 B
<?xml version="1.0" encoding="utf-8"?> <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\User" table="user"> <id name="Id" type="integer" column="id"> <generator strategy="IDENTITY"/> </id> <field name="Username" type="string" column="username" length="255" nullable="false"/> <field name="Password" type="string" column="password" length="255" nullable="false"/> </entity> </doctrine-mapping>