Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / orm / tools / sandbox / xml / Entities.Address.dcm.xml
diff --git a/vendor/doctrine/orm/tools/sandbox/xml/Entities.Address.dcm.xml b/vendor/doctrine/orm/tools/sandbox/xml/Entities.Address.dcm.xml
new file mode 100644 (file)
index 0000000..7e8dd01
--- /dev/null
@@ -0,0 +1,15 @@
+<?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="Entities\Address" table="addresses">
+        <id name="id" type="integer">
+            <generator strategy="AUTO"/>
+        </id>
+        <field name="street" type="string" length="255"/>
+        <one-to-one field="user" target-entity="User" mapped-by="address"/>
+    </entity>
+
+</doctrine-mapping>
\ No newline at end of file