40 lines
849 B
YAML
40 lines
849 B
YAML
Doctrine\Tests\ORM\Mapping\User:
|
|
type: entity
|
|
table: cms_users
|
|
id:
|
|
id:
|
|
type: integer
|
|
generator:
|
|
strategy: AUTO
|
|
fields:
|
|
name:
|
|
type: string
|
|
length: 50
|
|
oneToOne:
|
|
address:
|
|
targetEntity: Address
|
|
joinColumn:
|
|
name: address_id
|
|
referencedColumnName: id
|
|
cascade: [ remove ]
|
|
oneToMany:
|
|
phonenumbers:
|
|
targetEntity: Phonenumber
|
|
mappedBy: user
|
|
cascade: [ persist ]
|
|
manyToMany:
|
|
groups:
|
|
targetEntity: Group
|
|
joinTable:
|
|
name: cms_users_groups
|
|
joinColumns:
|
|
user_id:
|
|
referencedColumnName: id
|
|
inverseJoinColumns:
|
|
group_id:
|
|
referencedColumnName: id
|
|
cascade:
|
|
- all
|
|
lifecycleCallbacks:
|
|
doStuffOnPrePersist: prePersist
|
|
doStuffOnPostPersist: postPersist |