From: Raphaƫl Gertz Date: Thu, 26 Nov 2026 15:40:57 +0000 (+0100) Subject: Move now unsuported yml entities definition to xml format X-Git-Tag: 0.6.0~1 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/userbundle/commitdiff_plain/388e565d74aefb0ad403252f515154b47cf1ac1c?ds=sidebyside Move now unsuported yml entities definition to xml format --- diff --git a/config/doctrine/Civility.orm.xml b/config/doctrine/Civility.orm.xml new file mode 100644 index 0000000..6cbd3d9 --- /dev/null +++ b/config/doctrine/Civility.orm.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/config/doctrine/Civility.orm.yml b/config/doctrine/Civility.orm.yml deleted file mode 100644 index cce2efe..0000000 --- a/config/doctrine/Civility.orm.yml +++ /dev/null @@ -1,24 +0,0 @@ -Rapsys\UserBundle\Entity\Civility: - type: mappedSuperclass -# table: civilities - id: - id: - type: integer - generator: - strategy: AUTO - options: - unsigned: true - fields: - title: - type: string - length: 16 - created: - type: datetime - updated: - type: datetime -# oneToMany: -# users: -# targetEntity: User -# mappedBy: title - lifecycleCallbacks: - preUpdate: ['preUpdate'] diff --git a/config/doctrine/Group.orm.xml b/config/doctrine/Group.orm.xml new file mode 100644 index 0000000..441ad52 --- /dev/null +++ b/config/doctrine/Group.orm.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/config/doctrine/Group.orm.yml b/config/doctrine/Group.orm.yml deleted file mode 100644 index d05124f..0000000 --- a/config/doctrine/Group.orm.yml +++ /dev/null @@ -1,24 +0,0 @@ -Rapsys\UserBundle\Entity\Group: - type: mappedSuperclass -# table: groups - id: - id: - type: integer - generator: - strategy: AUTO - options: - unsigned: true - fields: - title: - type: string - length: 16 - created: - type: datetime - updated: - type: datetime -# manyToMany: -# users: -# targetEntity: User -# mappedBy: groups - lifecycleCallbacks: - preUpdate: ['preUpdate'] diff --git a/config/doctrine/User.orm.xml b/config/doctrine/User.orm.xml new file mode 100644 index 0000000..7f83696 --- /dev/null +++ b/config/doctrine/User.orm.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/doctrine/User.orm.yml b/config/doctrine/User.orm.yml deleted file mode 100644 index 829fddb..0000000 --- a/config/doctrine/User.orm.yml +++ /dev/null @@ -1,58 +0,0 @@ -Rapsys\UserBundle\Entity\User: - type: mappedSuperclass - repositoryClass: Rapsys\UserBundle\Repository\UserRepository -# table: users - id: - id: - type: integer - generator: - strategy: AUTO - options: - unsigned: true - fields: - mail: - type: string - unique: true - length: 254 - forename: - type: string - length: 32 - nullable: true - surname: - type: string - length: 32 - nullable: true - password: - type: string - length: 100 - active: - type: boolean - options: - default: true - enable: - type: boolean - options: - default: true - created: - type: datetime - updated: - type: datetime - manyToOne: - civility: - targetEntity: Civility - inversedBy: users - manyToMany: - groups: - targetEntity: Group - inversedBy: users -#see if usefull: https://stackoverflow.com/questions/34523699/how-to-extend-doctrine-entity-in-another-bundle -# joinTable: -# name: users_groups -# joinColumns: -# id: -# name: user_id -# inverseJoinColumns: -# id: -# name: group_id - lifecycleCallbacks: - preUpdate: ['preUpdate']