Development

sfGuardPluginExtraDocumentation (diff)

You must first sign up to be able to contribute.

Changes between Version 35 and Version 36 of sfGuardPluginExtraDocumentation

Show
Ignore:
Author:
axelat (IP: 62.178.134.101)
Timestamp:
11/25/09 15:23:32 (8 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sfGuardPluginExtraDocumentation

    v35 v36  
    233233      birthday:    date 
    234234  }}} 
     235 
     236Here is a working example of a `sfGuardUserProfile` class that works with the doctrine version of sfGuardPlugin: 
     237   {{{ 
     238sfGuardUserProfile: 
     239  columns: 
     240    id: { type: integer, primary: true, autoincrement: true } 
     241    user_id: { type: integer(4) } 
     242    firstname: { type: string(255) } 
     243    lastname: { type: string(255) } 
     244  relations: 
     245    User: 
     246      class: sfGuardUser 
     247      local: user_id 
     248      foreign: id 
     249      type: one 
     250      foreignType: one 
     251      foreignAlias: Profile 
     252}}} 
     253 
    235254 
    236255''user_id'' is the foreign-key to sf_guard_user. You can change this foreign key name and also the associated user-profile-class in `app.yml`: