its because it should be $this->getUser()->getGuardUser()->Profile


On Apr 20, 2:15 pm, Christian Haintz <christian.hai...@gmail.com>
wrote:
> Hi
>
> I installed the Plugin as it is written in the Readme but i can't  
> access the Profile. I have the same symptoms as described in the Forum  
> Post [1] but the solution there is kind of a workaround than a real  
> solution i think.
>
> Is there probably an error in the getProfile Method in sf1.2 with  
> doctrine or do we miss something?
>
> My Schema.yml (not the same as in the Readme because in the readme i  
> think it is not valid doctrine schema syntax)
>
> sf_guard_user_profile:
>    actAs: [Timestampable]
>    className: sfGuardUserProfile
>    columns:
>      id:
>        type: integer
>        primary: true
>        autoincrement: true
>      user_id:
>        type: integer(4)
>        email: string(255)
>    relations:
>      sfGuardUser:
>        local: user_id
>        onDelete: CASCADE
>
> After i loaded the fixtures and logged in I try to access the Profile  
> like this from the Action:
>
> $this->getUser()->getProfile()->getEmail()
>
> Thx for any help,
> Christian
>
> [1]http://forum.symfony-project.org/index.php/m/73972/
>
> --
> Christian Haintz
> Student of Software Development and Business Management
> Graz, University of Technology

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@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