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
|
2010-02-02 00:48:27 +03:00
|
|
|
email:
|
|
|
|
type: string
|
|
|
|
column: user_email
|
|
|
|
columnDefinition: CHAR(32) NOT NULL
|
2009-06-06 01:40:47 +04:00
|
|
|
oneToOne:
|
|
|
|
address:
|
|
|
|
targetEntity: Address
|
|
|
|
joinColumn:
|
|
|
|
name: address_id
|
|
|
|
referencedColumnName: id
|
2010-03-17 17:20:18 +03:00
|
|
|
onDelete: CASCADE
|
|
|
|
onUpdate: CASCADE
|
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-02-27 00:26:06 +03:00
|
|
|
orderBy:
|
|
|
|
number: ASC
|
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-02-02 00:48:27 +03:00
|
|
|
columnDefinition: INT NULL
|
2010-01-22 18:10:13 +03:00
|
|
|
cascade:
|
|
|
|
- all
|
2009-08-25 13:14:08 +04:00
|
|
|
lifecycleCallbacks:
|
2010-03-15 22:29:07 +03:00
|
|
|
prePersist: [ doStuffOnPrePersist, doOtherStuffOnPrePersistToo ]
|
|
|
|
postPersist: [ doStuffOnPostPersist ]
|