Hello, confused in relational communications YII, I ask for help.
There are 2 tables, Products and Related
Products (id, title, etc ..), and related (products_id, link_id)
I can not link them so that in the product to withdraw all related products.
I read to the dock, I tried it myself, nothing happened.
Found it in the dock, maybe someone will need it.
'p_related'=>array(self::HAS_MANY,'Related','products_id','joinType'=>'INNER JOIN'), 'related'=>array(self::HAS_MANY,'Products',array('link_id'=>'id'),'through'=>'p_related','joinType'=>'INNER JOIN'),