Re: [symfony-users] Re: How i can implement this with sfGuard plugin

2010-08-17 Thread Gustavo Adrian
In your fixtures check if you are indeed assigning a valid sfGuardUser to the user_id field of "rank_domain" objects On Tue, Aug 17, 2010 at 2:12 AM, RusAlex wrote: > Can you explain please: > I've tried to add relation to schema.yml > > RankDomain: > columns: >name: { type: string(255), no

Re: [symfony-users] Re: How i can implement this with sfGuard plugin

2010-08-15 Thread Alexandre Salomé
getGuardUser() can return a null value. Take care of it. Using a method on the table is smartest (I think) : Doctrine::getTable('Jobs')->findByAuthor($this->getUser()->getGuardUser()); 2010/8/14 Alan Bem > Wouldn't it be better? > > $this->getUser()->getGuardUser()->getJobs()? > > You just ne

Re: [symfony-users] Re: How i can implement this with sfGuard plugin

2010-08-14 Thread Alan Bem
Wouldn't it be better? $this->getUser()->getGuardUser()->getJobs()? You just need to add proper relation between sf_guard_user and job tables. 2010/8/14 Tom Ptacnik > Maybe better would be to store the id of the user not the username. > But the principle is right. > > And this code of creating