I think that transactions can be used for inserting record into two tables at once (1 form). But I don’t know how. An example would be great.
I think that transactions can be used for inserting record into two tables at once (1 form). But I don’t know how. An example would be great.
This should help you http://www.yiiframework.com/doc/guide/1.1/en/database.ar#using-transaction-with-ar