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
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
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