Relational Active Record

Hi I was wondering with "Relational Active Record" is it possible to update different linked tables?

Example, I have a table linked with another through ONE to MANY.

Could I simply fetch the record, set my changes to the attributes and call save() and have it update all rows?

Is that possible or do I need to do the main and then loop through each record of the child and update them individually?


With core Yii you have to loop through each record. There are useful community powered extensions for AR that can do this job for you:

Thanks I will check it out!

Maybe this one helps: