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
|
2011-03-07 00:45:09 +03:00
|
|
|
namedQueries:
|
|
|
|
all: SELECT u FROM __CLASS__ u
|
2009-06-06 01:40:47 +04:00
|
|
|
id:
|
|
|
|
id:
|
|
|
|
type: integer
|
|
|
|
generator:
|
2009-06-07 21:20:37 +04:00
|
|
|
strategy: AUTO
|
2010-05-01 05:28:18 +04:00
|
|
|
sequenceGenerator:
|
|
|
|
sequenceName: tablename_seq
|
|
|
|
allocationSize: 100
|
|
|
|
initialValue: 1
|
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
|
2010-04-10 02:00:36 +04:00
|
|
|
inversedBy: user
|
2009-06-06 01:40:47 +04:00
|
|
|
joinColumn:
|
|
|
|
name: address_id
|
|
|
|
referencedColumnName: id
|
2010-03-17 17:20:18 +03:00
|
|
|
onDelete: CASCADE
|
2010-01-22 18:10:13 +03:00
|
|
|
cascade: [ remove ]
|
2009-06-06 01:40:47 +04:00
|
|
|
oneToMany:
|
|
|
|
phonenumbers:
|
|
|
|
targetEntity: Phonenumber
|
2011-07-31 13:32:57 +04:00
|
|
|
orphanRemoval: true
|
2009-06-06 01:40:47 +04:00
|
|
|
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 ]
|
2010-04-28 22:27:53 +04:00
|
|
|
postPersist: [ doStuffOnPostPersist ]
|
|
|
|
uniqueConstraints:
|
|
|
|
search_idx:
|
2010-06-14 00:59:56 +04:00
|
|
|
columns: name,user_email
|
|
|
|
indexes:
|
|
|
|
name_idx:
|
|
|
|
columns: name
|
|
|
|
0:
|
|
|
|
columns: user_email
|