Hello,

I am using symfony 1.2.10 with sfGuardPlugin 3.1.3 , I have created a profile 
class sfGuardUserProfile through my schema.yml. When I try to use 
$this->getUser()->getGuardUser()->getProfile()->getId() in my action class as 
described in the readme file for sfGuardPlugin I get the following error


The user profile class "sfGuardUserProfile" does not exist.
even when I try to use the proxy method i get the same response. I've tried 
rebuilding my model and I've even run the propel:build-all as well as cleared 
my cache etc
I believe its a simple solution but just cant get it to work. My schema.yml is 
below. Thanks for any help i can get.

# config/schema.yml
propel:
  sf_guard_user_profile:
    id: ~
    user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id 
}
    title:  { type: varchar(255) }
    last_name: { type: varchar(255) }
    first_name: { type: varchar(255) }
    middle_name: { type: varchar(255) }
    facebook_uid: { type: integer }
    email: { type: varchar(255) }
    email_hash: { type: varchar(255) }
    created_at: ~
    updated_at: ~


  description:
    id:  ~
    sf_guard_user_profile_id: { type: integer, foreignTable: 
sf_guard_user_profile, foreignReference: id }
    content: { type: longvarchar }
    range: { type: varchar(255) } #global, friends, hidden
    created_at: ~
    updated_at: ~


  comment:
    id: ~
    description_id: { type: integer, foreignTable: description, 
foreignReference: id }
    content: { type: longvarchar }
    created_at: ~
    updated_at: ~


  picture:
    id: ~
    description_id: { type: integer, foreignTable: description, 
foreignReference: id }
    name: { type: longvarchar }
    location: { type: longvarchar }
    created_at: ~
    updated_at: ~



      

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to