TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'] ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['id', 'saas_user_id', 'salesman_id', 'status', 'created_at', 'updated_at', 'cat_id', 'merchant_info_id', 'is_single_store', 'district_id', 'city_id', 'province_id'], 'integer'], [['name', 'mobile', 'password', 'business_pic', 'permit_pic', 'logo','store_number'], 'string'], [['currceny_percent_scan'], 'number'], ]; } }