Код: Выделить всё
select * from table
inne join table2 as supertable on supertable.id=table.supertable_id
Код: Выделить всё
this->innejoin('table2 as supertable', 'supertable.id=table.supertable_id')->andwhere() ?...
Код: Выделить всё
select * from table
inne join table2 as supertable on supertable.id=table.supertable_id
Код: Выделить всё
this->innejoin('table2 as supertable', 'supertable.id=table.supertable_id')->andwhere() ?...
Код: Выделить всё
self::find()->innerJoin('table2 supertable', 'supertable.id=table.supertable_id')->where(...)->all();