Did u add this to your app.yml file :
*all:
sf_guard_plugin:
profile_class: sfGuardUserProfile
profile_field_name: user_id*
2009/12/28 Zeek <[email protected]>
> Sorom, what do you get if you do this:
>
> echo get_class($this->getUser()->getGuardUser()->getProfile());
>
> Do you get an error when this is called?
>
> echo get_class($this->getUser()->getGuardUser());
>
> If you look in lib/model do you see a sfGuardUserProfile class? It is
> case sensitive. Be sure you do not have SfGuardUserProfile.
>
>
>
> On Dec 28, 3:52 pm, Sorom Uzomah <[email protected]> wrote:
> > 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]<symfony-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>
--
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.