Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Unknown method sfGuardUserProfile::setUser
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Kailash  
View profile   Translate to Translated (View Original)
 More options 10 July, 12:42
From: Kailash <manelp...@gmail.com>
Date: Fri, 10 Jul 2009 04:42:34 -0700 (PDT)
Local: Fri 10 July 2009 12:42
Subject: Unknown method sfGuardUserProfile::setUser
Hi,

I'm integrating sfDoctrieGuard into Symfony and Doctrine return an
error when i load de fixtures:

"Unknown method sfGuardUserProfile::setUser"

Mi schema.yml is:

...
sfGuardUserProfile:
  className: sfGuardUserProfile
  tableName: sf_guard_user_profile
  columns:
    id:
      type: integer(4)
      unsigned: 1
      primary: true
      autoincrement: true
    user_id:
      type: integer(4)
    player_id:
      type: integer(4)
      unsigned: 1
    first_name:
      string(255)
    last_name:
      string(255)
    email:
      string(255)
  relations:
    Player:
      local: player_id
      foreign: id
    sfGuardUser:
      local: user_id
      foreign: id
      foreignAlias: profile
 ...

and the fixture file users.yml is:

sfGuardUser:
  sgu_user1:
    username:      User1
    password:       pass_user1
    is_super_admin: false
sfGuardUserProfile:
  sgup_anta:
    User: sgu_user1
    Player: player1
    first_name: Name
    last_name: Last Name
    email: play...@mail.foo

What am I doing wrong?
Thanks a lot


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
eXtreme  
View profile   Translate to Translated (View Original)
 More options 10 July, 12:45
From: eXtreme <jacek.jedrzejew...@gmail.com>
Date: Fri, 10 Jul 2009 04:45:03 -0700 (PDT)
Local: Fri 10 July 2009 12:45
Subject: Re: Unknown method sfGuardUserProfile::setUser
Your relation name is "sfGuardUser" not "User" :P Edit you fixture and
change "User: sgu_user1" to "sfGuardUser: sgu_user1" or edit you
schema end change:

    sfGuardUser:
      local: user_id
      foreign: id
      foreignAlias: profile

to

    User:
      class: sfGuardUser
      local: user_id
      foreign: id
      foreignAlias: profile

On 10 Lip, 13:42, Kailash <manelp...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gimler  
View profile   Translate to Translated (View Original)
 More options 10 July, 12:45
From: gimler <gordon.fra...@web.de>
Date: Fri, 10 Jul 2009 04:45:23 -0700 (PDT)
Local: Fri 10 July 2009 12:45
Subject: Re: Unknown method sfGuardUserProfile::setUser
use setsfGuardUser or change your schema

  relations:
    User:
      class: sfGuardUser
      local: user_id
      foreign: id
      foreignAlias: profile

On Jul 10, 1:42 pm, Kailash <manelp...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kailash  
View profile   Translate to Translated (View Original)
 More options 10 July, 12:52
From: Kailash <manelp...@gmail.com>
Date: Fri, 10 Jul 2009 04:52:32 -0700 (PDT)
Local: Fri 10 July 2009 12:52
Subject: Re: Unknown method sfGuardUserProfile::setUser
ok!!! thanks

i'm newbie in Doctrine, sorry ;)

On 10 jul, 13:45, eXtreme <jacek.jedrzejew...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google