X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/7ab0c56bbb9c228d9b6b24cdee90c1fa73570a6a..97215da101c2bd6c0ba7fc0beb45a2bb045220dd:/Resources/config/doctrine/Author.orm.yml diff --git a/Resources/config/doctrine/Author.orm.yml b/Resources/config/doctrine/Author.orm.yml new file mode 100644 index 0000000..176fe32 --- /dev/null +++ b/Resources/config/doctrine/Author.orm.yml @@ -0,0 +1,33 @@ +Rapsys\BlogBundle\Entity\Author: + type: entity + repositoryClass: Rapsys\BlogBundle\Repository\AuthorRepository + table: authors + indexes: + name: + columns: [ name ] + id: + id: + type: smallint + generator: + strategy: AUTO + options: + unsigned: true + fields: + name: + type: string + length: 64 + slug: + type: string + length: 64 + unique: true + created: + type: datetime + updated: + type: datetime + oneToMany: + articles: + targetEntity: Rapsys\BlogBundle\Entity\Article + mappedBy: author + author_translations: + targetEntity: Rapsys\BlogBundle\Entity\AuthorTranslation + mappedBy: author