This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » User management plugins » [SOLVED] sfDoctrineApplyPlugin problem when "Apply for an Account"
[SOLVED] sfDoctrineApplyPlugin problem when "Apply for an Account" [message #98507] Tue, 04 May 2010 16:35
NeoX  is currently offline NeoX
Messages: 58
Registered: March 2010
Location: Spain
Member

Hi all,
I'm configuring sfDoctrineApplyPlugin and when I try to create a new user account I get the following:
500 | Internal Server Error | Doctrine_Record_UnknownPropertyException
Unknown record property / related component "user" on "sfGuardUserProfile"


My schema.yml:
sfGuardUserProfile:
  tableName: sf_guard_user_profile
  columns:
    id:
      type: integer(4)
      primary: true
      autoincrement: true
    user_id:
      type: integer(4)
      notnull: true
    email:
      type: string(80)
    fullname:
      type: string(80)
    validate:
      type: string(17)
  relations:
    sfGuardUser:
      type: one
      foreignType: one
      class: sfGuardUser
      local:  user_id
      foreign:  id
      onDelete: CASCADE
      foreignAlias:  Profile


I have enabled the following modules: [default, sfGuardAuth, sfGuardUser, sfApply, sfGuardGroup, sfGuardPermission ]

Could someone help me? Thanks.

Problem solved changing relations in schema.yml
:
  relations:
    User:
      class: sfGuardUser
      foreign: id
      local: user_id
      type: one  
      onDelete: cascade    
      foreignType: one
      foreignAlias: Profile

[Updated on: Wed, 05 May 2010 13:51]

Previous Topic:sfForkedDoctrineApplyPlugin : Mail service required?
Next Topic:sfDoctrineGuardPlugin - How to use sfGuardGroup form in sfGuardUser module?
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software