Hi Zeek,

Thanks for your response. In my lib/model I have SfGuardUserProfile not 
sfGuardUserProfile, but all the other classes start with a capital letter. Do I 
need to specifically change this to small letters and I have other projects 
where the profile class was SfGuardUserProfile and they all seem to work fine .

I'll try your other suggestions and see what happens. Thanks again.




________________________________
From: Zeek <z...@thesecondroad.org>
To: symfony users <symfony-users@googlegroups.com>
Sent: Mon, December 28, 2009 11:20:12 PM
Subject: [symfony-users] Re: The user profile class "sfGuardUserProfile" does  
not exist.

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 <delsa...@yahoo.com> 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 symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
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 symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to