|
[symfony-users] Re: nested forms: msg#00848symfony-users
I have only one advice for You. Use embedForm instead of embedFormForEach. Few days back I also tried to create dynamic form and I got nowhere when using embedFormForEach. Practically You should be able to use embedForm many times in a loop and You should get the same effect. In my case when I was using embedFormForEach and there was more than one embedded form - only the last one was saved to database. When I used embedForm in a loop then all records was saved to database properly. good luck -- Best regards Åukasz Wojciechowski New Generation Software +48 602 214 629 http://www.ngsoft.pl 2009/7/30 mirfan <m.irfansb@xxxxxxxxx>: > > please somebody help me i am really stucked here > > On Jul 29, 6:48Âpm, mirfan <m.irfa...@xxxxxxxxx> wrote: >> hi everybody, >> i am using embedFormForEach and also embedForm: >> Â1. embedForm save data without any problems but embedFormForeach is >> not saving the data in database. >> Â2. i need unlimited time to embed form thats why i am using >> embedFormForEach but i need some help here: >> Â Â Âa. first is that some depends on database tables it will read >> modifiers how many they that much forms will be embedded. >> Â Â Âexample >> Â Â Â Â Â i have eye_symptoms table which have the following fields >> Â Â Â Â Â Â Â Âid >> Â Â Â Â Â Â Â Âsymptom_title >> Â Â Â Â Â Â Â Âstatus >> Â Â Â Â Â the modifier table fields are >> Â Â Â Â Â Â Â Âid >> Â Â Â Â Â Â Â Âsymptom_id >> Â Â Â Â Â Â Â Âonset >> Â Â Â Â Â Â Â Âvalue >> Â Â Â Â Ânow if i add 5 values in modifier table i will need five >> forms t embed. >> Â Â Â b. second problem with embedForEach is that i want to use >> javascript as i click on add the form should be generated, and it has >> no limit may i need just once or may be 15 time. >> >> please help i am fresh to symfony and my task is very complex, any >> help will really glade me >> >> Regards, > > > --~--~---------~--~----~------------~-------~--~----~ 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@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to symfony-users+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |