Hi, sorry for the bad title but I couldn't think of a better one. I'm just playing with the generated crud interface and am trying to modify it for my needs. It works great in general, but now I stumbled and have a question:
For all the data a user can create I want to save the user_id. I have already done a login system and save the user_id in the context (setUser()). So every time after a form is submitted, I can get this id. Problem is, I don't know _where_ to do it. Because my database model includes user_id, I had this field in all the generated create-forms. I figured out with unset($this['user_id']) in configure() of WidgetForm I can remove this field from the form and the connected validation. Now I tried to overwrite doSave() in /lib/model/Widget.php, copied the original one and modified it to get the user_id out of the context and placed it in $this->setBenutzerId(). This worked fine for the web interface, but propel:data-load seems to use the same function and now I get an error there, of course, because on the command line there is no context. I could change this method, check for the existence of a valid context and otherwise, but is this the right way to go? Or am I looking on the wrong end and should better do this totally different? Help would be appreciated. - Jan --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---