Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / orm / tools / sandbox / yaml / Entities.User.dcm.yml
diff --git a/vendor/doctrine/orm/tools/sandbox/yaml/Entities.User.dcm.yml b/vendor/doctrine/orm/tools/sandbox/yaml/Entities.User.dcm.yml
new file mode 100644 (file)
index 0000000..a93d48f
--- /dev/null
@@ -0,0 +1,18 @@
+Entities\User:
+  type: entity
+  table: users
+  id:
+    id:
+      type: integer
+      generator:
+        strategy: AUTO
+  fields:
+    name:
+      type: string
+      length: 50
+  oneToOne:
+    address:
+      targetEntity: Address
+      joinColumn:
+        name: address_id
+        referencedColumnName: id