> I'd like to hide that drop-down list, and set the author_id to the id
> of the current logged-in user.
>

I dont have an installation here but you can do it as follows:

- in the formclass from you object get the user object via the options
from the logged in user.

- overwrite the widget for the author_id with a  hidden value widget
and set as value the id from the user

- in the GeneratorConfiguration class (inside the lib folder of your
generated module) overwrote the method getFormOptions (or something
similar) and return an array with the user set.

hope this helps

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to