TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'], ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['saas_id', 'is_enable', 'level_id','weight','store_id'], 'integer'], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'saas_id' => '合伙人', 'level_id' => '等级', 'is_enable' => '是否开启', ]; } }