I’ve two model, let’s called them Order and OrderLine,
what is the common way to interact with these models in a form using Yii ?
is there any widget that enable us to do so ?
thanks
I’ve two model, let’s called them Order and OrderLine,
what is the common way to interact with these models in a form using Yii ?
is there any widget that enable us to do so ?
thanks
Hi,
create relation between both table with one_many relation
Indeed, AR Relations are awesome, read more: http://www.yiiframework.com/doc/guide/1.1/en/database.arr
Later, also read more advanced relational options as very good explained by Softark here: http://www.yiiframework.com/wiki/428/drills-search-by-a-has_many-relation/