I have two relations with one table.
two foreign keys from one table:
one of them holds the object’s accounting unit where it belongs to
the other holds the object’s physical accounting unit
think there is a PC which belongs to me and I lend it to you
me and you are in a table
I want to save both ids in PC row as the names I told
in this example I am accounting unit
you are physical accounting unit
accounting unit table is in relation with many tables and uses a default scope for it’s segment
but in this example because of having two relationships with one table
the default scope will repeat for each relation
so I should disable it in one of these relations
‘acu’ => array(self::BELONGS_TO, ‘WSIAccountingUnit’, ‘acu_id’),
‘phy_acu’ => array(self::BELONGS_TO, ‘WSIAccountingUnit’, ‘phy_acu_id’),
how can I do this?