]> Raphaƫl G. Git Repositories - blogbundle/blobdiff - Resources/config/doctrine/AuthorTranslation.orm.yml
Add doctrine configuration
[blogbundle] / Resources / config / doctrine / AuthorTranslation.orm.yml
diff --git a/Resources/config/doctrine/AuthorTranslation.orm.yml b/Resources/config/doctrine/AuthorTranslation.orm.yml
new file mode 100644 (file)
index 0000000..b7be2e3
--- /dev/null
@@ -0,0 +1,27 @@
+Rapsys\BlogBundle\Entity\AuthorTranslation:
+        type: entity
+        repositoryClass: Rapsys\BlogBundle\Repository\AuthorTranslationRepository
+        table: authors_translations
+        id:
+                author_id:
+                        type: smallint
+                        options:
+                                unsigned: true
+                language_id:
+                        type: smallint
+                        options:
+                                unsigned: true
+        fields:
+                description:
+                        type: text
+                created:
+                        type: datetime
+                updated:
+                        type: datetime
+        manyToOne:
+                author:
+                        targetEntity: Rapsys\BlogBundle\Entity\Author
+                        inversedBy: author_translations
+                language:
+                        targetEntity: Rapsys\BlogBundle\Entity\Language
+                        inversedBy: language_translations