/** * @return \yii\db\ActiveQuery */ public function getTable3s() { return $this->hasMany(Table3::className(), ['t4_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getT3() { return $this->hasOne(Table3::className(), ['id' => 't3_id']); }