Maybe this help a bit:

Assuming the field you talk about "author field" is a select widget in
the form you can set its default value in the options section of the
widget, to get the logged user, use something like:

class myUser extends sfGuardSecurityUser
{
     public function getUserId()
     {
        if($this->isAuthenticated())
           return $this->getGuardUser()->getId(); //here retirns what
user is logged in
        else
           return 0;
      }
}

cheers

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to