updating a one to many relationship with one form

Hi,

I currently have a form using the ActiveRecord model and I would like to add a bit to it to update or insert one or several rows in another table. I plan on making a dynamic UI so that if you enter one another area will appear so that you can enter more. I’m more worried about the controller part where I need to save that list of new entries. Are there any suggestions for the best way to do this or is there something already built into yii for this?

I’m not sure if that makes sense. I can try to explain a bit more if I need to.

Thanks for any help,

-Nazum

Any Ideas?

I am not sure, but is this cookbook help you?

http://www.yiiframework.com/wiki/19/

Thats kind of the idea. Except I want to submit data for multiple records in my second table. That example describes a one to one relationship and my situation is a one to many relationship. Any given record in table A will point to several records in table B.

I’m not sure but I think I want to use what you posted in combination with this article: http://www.yiiframework.com/doc/guide/1.1/en/form.table

Hi, did you find a answer for this problem? I am having the same issue…

any progress on this topic?? it’s what i’m looking for.