'ID', 'user_id' => 'User ID', 'is_super_admin' => 'Is Super Admin', 'is_admin' => 'Is Admin', 'is_operator' => 'Is Operator', 'is_delete' => 'Is Delete', 'member_level' => 'Member Level', 'is_distributor' => 'Is Distributor', ]; } public function getMember() { return $this->hasOne(MallMembers::className(), ['level' => 'member_level'])->andWhere(['mall_id' => \Yii::$app->mall->id, 'is_delete' => 0]); } }