Hi all, i have some serious issues on this topic, better explained in the example at the page
http://www.symfony-project.org/advent_calendar/8/en What i'm trying to understand is how to deal with object that yet do not have an entry in the db. The example looks perfectly clear when the embedding of the form is done on a propelform ,with an already present object. I do not understand exactly how to deal with input sources that are not the user. Practical example: imagine something like a product catalog, with products listed in a file. what i'd like to obtain is a form for each product , where the user can edit the loaded data, and edit some fields that are not related to the model itself. Example of product model: id: name: price: image_path: Example of form that i'd like to show: id: name: proposed_price: (loaded from file) price: image_path: What i imagine is that a sfForm should embed X CustomProductForms ( X = number of entries in the file ). ( the customproductform is a standard productform with the widget & validator "proposed_price" added ) I should rewrite the save method of the main form , to allow saving of embedded forms, and everything should work fine? well, if the answer is yes.... it doesn't work. I seem to have some problem in the saving procedure, it looks like the binding of the embedded forms fail, leaving them totally empty. What am i missing ? where should i look for better explanations on this topic? i already tried the forums, but i still haven't solved anything on this argument ... -- 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.
