Permalink
Browse files

updated models

  • Loading branch information...
1 parent 107ffeb commit 6b767f2e3ee8afd712dd0c9fee09379f5631afd3 @everzet committed Sep 17, 2010
@@ -23,14 +23,17 @@ sfObjectGuardActivationKey:
User:
class: sfObjectGuardUser
local: user_id
+ foreignAlias: ActivationKeys
onDelete: CASCADE
Inviter:
class: sfObjectGuardUser
local: inviter_id
+ foreignAlias: Invites
onDelete: CASCADE
KeyType:
class: sfObjectGuardActivationKeyType
local: key_type_id
+ foreignAlias: Keys
onDelete: CASCADE
options:
collate: utf8_unicode_ci
@@ -12,16 +12,6 @@ sfObjectGuardActivationKeyType:
for_activation:
type: boolean
default: true
- relations:
- ActivationKeys:
- class: sfObjectGuardActivationKey
- local: id
- foreign: key_type_id
- Users:
- class: sfObjectGuardUser
- local: id
- foreign: key_type_id
- foreignType: one
options:
collate: utf8_unicode_ci
charset: utf8
@@ -9,13 +9,6 @@ sfObjectGuardPermission:
type: string(255)
unique: true
description: string(1000)
- relations:
- Groups:
- class: sfObjectGuardGroup
- local: permission_id
- foreign: group_id
- refClass: sfObjectGuardGroupPermission
- foreignAlias: Permissions
options:
collate: utf8_unicode_ci
charset: utf8
@@ -15,10 +15,11 @@ sfObjectGuardRememberKey:
User:
class: sfObjectGuardUser
local: user_id
+ foreignAlias: RememberKeys
onDelete: CASCADE
options:
symfony:
form: false
filter: false
- collate: utf8_unicode_ci
- charset: utf8
+ collate: utf8_unicode_ci
+ charset: utf8
@@ -42,15 +42,11 @@ sfObjectGuardUser:
KeyType:
class: sfObjectGuardActivationKeyType
local: key_type_id
- onDelete: CASCADE
+ onDelete: RESTRICT
Inviter:
class: sfObjectGuardUser
local: inviter_id
- onDelete: CASCADE
- ActivationKeys:
- class: sfObjectGuardActivationKey
- local: id
- foreign: user_id
+ onDelete: RESTRICT
options:
collate: utf8_unicode_ci
charset: utf8
@@ -15,10 +15,12 @@ sfObjectGuardUserGroup:
User:
class: sfObjectGuardUser
local: user_id
+ foreignType: one
onDelete: CASCADE
Group:
class: sfObjectGuardGroup
local: group_id
+ foreignType: one
onDelete: CASCADE
options:
symfony:

0 comments on commit 6b767f2

Please sign in to comment.