]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/config/doctrine/Application.orm.yml
Revert doctrine Resources/config/doctrine/*.orm.yaml files back to .orm.yml extension
[airbundle] / Resources / config / doctrine / Application.orm.yml
diff --git a/Resources/config/doctrine/Application.orm.yml b/Resources/config/doctrine/Application.orm.yml
new file mode 100644 (file)
index 0000000..aaf461f
--- /dev/null
@@ -0,0 +1,27 @@
+Rapsys\AirBundle\Entity\Application:
+    type: entity
+    repositoryClass: Rapsys\AirBundle\Repository\ApplicationRepository
+    table: applications
+    id:
+        id:
+            type: integer
+            generator: 
+                strategy: AUTO
+            options:
+                unsigned: true
+    fields:
+        created:
+            type: datetime
+        updated:
+            type: datetime
+    manyToOne:
+        session:
+            targetEntity: Rapsys\AirBundle\Entity\Session
+            inversedBy: applications
+        user:
+            targetEntity: Rapsys\AirBundle\Entity\User
+            inversedBy: applications
+    oneToMany:
+        votes:
+            targetEntity: Rapsys\AirBundle\Entity\Vote
+            mappedBy: application