/** * @return \yii\db\ActiveQuery */ public function getTenant() { return $this->hasOne(Tenant::className(), ['id' => 'tenant_id']); }