255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'mall ID', 'name' => '名称', 'pay_price' => '支付价格', 'send_price' => '赠送价格', 'is_delete' => '删除', 'created_at' => 'Created At', 'updated_at' => 'Update At', 'deleted_at' => 'Deleted At', 'send_integral' => '赠送的积分', 'send_member_id' => '赠送的会员', ]; } public function getMember() { return $this->hasOne(MallMembers::className(), ['id' => 'send_member_id', 'is_delete' => 'is_delete']); } }