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