2009-08-13 15:03:26 +04:00
|
|
|
Doctrine\Tests\ORM\Mapping\User:
|
2009-06-06 01:40:47 +04:00
|
|
|
type: entity
|
|
|
|
table: cms_users
|
|
|
|
id:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
generator:
|
2009-06-07 21:20:37 +04:00
|
|
|
strategy: AUTO
|
2009-06-06 01:40:47 +04:00
|
|
|
fields:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
length: 50
|
2010-01-28 02:00:55 +03:00
|
|
|
nullable: true
|
|
|
|
unique: true
|
2009-06-06 01:40:47 +04:00
|
|
|
oneToOne:
|
|
|
|
address:
|
|
|
|
targetEntity: Address
|
|
|
|
joinColumn:
|
|
|
|
name: address_id
|
|
|
|
referencedColumnName: id
|
2010-01-22 18:10:13 +03:00
|
|
|
cascade: [ remove ]
|
2009-06-06 01:40:47 +04:00
|
|
|
oneToMany:
|
|
|
|
phonenumbers:
|
|
|
|
targetEntity: Phonenumber
|
|
|
|
mappedBy: user
|
2010-01-22 18:10:13 +03:00
|
|
|
cascade: [ persist ]
|
2009-06-06 01:40:47 +04:00
|
|
|
manyToMany:
|
|
|
|
groups:
|
|
|
|
targetEntity: Group
|
|
|
|
joinTable:
|
|
|
|
name: cms_users_groups
|
|
|
|
joinColumns:
|
|
|
|
user_id:
|
|
|
|
referencedColumnName: id
|
2010-01-28 02:00:55 +03:00
|
|
|
nullable: false
|
|
|
|
unique: false
|
2009-06-06 01:40:47 +04:00
|
|
|
inverseJoinColumns:
|
|
|
|
group_id:
|
2009-08-25 01:05:55 +04:00
|
|
|
referencedColumnName: id
|
2010-01-22 18:10:13 +03:00
|
|
|
cascade:
|
|
|
|
- all
|
2009-08-25 13:14:08 +04:00
|
|
|
lifecycleCallbacks:
|
2009-08-25 01:05:55 +04:00
|
|
|
doStuffOnPrePersist: prePersist
|
|
|
|
doStuffOnPostPersist: postPersist
|