[symfony-users] Call to undefined method myUser::method

2010-12-06 Thread Carlos
Hi, I added some methods to myUser class, and suddenly I can't access to them from the action. $this-getUser()-method returns a Call to undefined method error message. I really think it was working before... Maybe I modified any yml file? My myUser class and one of this methods: class myUser

Re: [symfony-users] Call to undefined method myUser::method

2010-12-06 Thread Gareth McCumskey
As far as I am aware $this-getUser() does not access your own class that overrides sfBasicSecurityUser but is in fact an instance of sfBasicSecurityUser. I stand to be corrected however. On Mon, Dec 6, 2010 at 3:59 PM, Carlos carlosb...@gmail.com wrote: Hi, I added some methods to myUser

Re: [symfony-users] Call to undefined method myUser::method

2010-12-06 Thread Alex Pilon
That should be working.. when you enable sfGuard you change the base class of the myUser class to gain access to $this-getUser()-getGuardUser(). Can you check the class type of $this-getUser() ? [ get_class($this-getUser()) ] On Mon, Dec 6, 2010 at 11:56, Gareth McCumskey gmccums...@gmail.com