]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/config/doctrine/Slot.orm.yaml
Rename to yaml doctrine config files
[airbundle] / Resources / config / doctrine / Slot.orm.yaml
diff --git a/Resources/config/doctrine/Slot.orm.yaml b/Resources/config/doctrine/Slot.orm.yaml
new file mode 100644 (file)
index 0000000..c4ff511
--- /dev/null
@@ -0,0 +1,24 @@
+Rapsys\AirBundle\Entity\Slot:
+    type: entity
+    #repositoryClass: Rapsys\AirBundle\Repository\SlotRepository
+    table: slots
+    id:
+        id:
+            type: integer
+            generator: 
+                strategy: AUTO
+            options:
+                unsigned: true
+    fields:
+        begin:
+            type: time
+        end:
+            type: time
+        created:
+            type: datetime
+        updated:
+            type: datetime
+    oneToMany:
+        sessions:
+            targetEntity: Rapsys\AirBundle\Entity\Session
+            mappedBy: slot