/** * @return \yii\db\ActiveQuery */ public function getTenantUsers() { return $this->hasMany(TenantUser::className(), ['user_id' => 'id']); }