hi,
I have 3 models that implements relations as follows how to get the records for A with (B with C) ?
class A extends CActiveRecord
{
public function relations()
{
return array(
'B'=>array(self::HAS_MANY, 'B', 'AID'),
);
}
}
class B extends CActiveRecord
{
public function relations()
{
return array(
'C'=>array(self::HAS_MANY, 'C', 'BID'),
);
}
}
class c extends CActiveRecord
{
}