When you do sfForm->bind($values). All of the values are filtered through the widget validators where the tainted values are cleaned using the doClean() method of each validator. The values are then updated to the object with the updateObject() method of the form object.
- Jon On Fri, Nov 7, 2008 at 2:42 PM, juro <[EMAIL PROTECTED]> wrote: > > Hi, > I am trying (desperately) to create a custom widget/validator that > modifies the n:m relationship with a quantity field. > > For this, I need to understand the form system: > > 1. When editing an existing entry, when and how are the widgets > populated with values from the database? I do think the $value > parameter holds the values but where are they set? > > 2. When is the entry of a widget saved? I know that $form->save() > calls the save method - but somewhere, the form has to know how to > save the values. E.g. when using a DoctrineChoiceMany widget, where is > the code that actually creates, modifies or deletes entries in the > through class? > > I hope these questions are clear enough. > > juro > > > > -- Jonathan H. Wage Open Source Software Developer & Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
