65], [['pic_url', 'bg_pic_url'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'level' => '会员等级', 'name' => '会员名称', 'auto_update' => '是否自动升级状态', 'money' => '会员升级金额', 'discount' => '会员折扣', 'status' => '会员状态', 'pic_url' => '会员图标', 'bg_pic_url' => '会员背景图', 'is_purchase' => '是否可购买状态', 'price' => '会员价格', 'rules' => '会员规则', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'deleted_at' => 'Deleted At', 'is_delete' => 'Is Delete', ]; } public function getRights() { return $this->hasMany(MallMemberRights::className(), ['member_id' => 'id'])->where(['is_delete' => 0]); } }