TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'] ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['send_time', 'start_time', 'end_time', 'make_concessions_count','store_id'], 'integer'], [['all_order_money', 'string_code_make_concessions', 'make_concessions_amount'], 'number'], [['created_at', 'updated_at'], 'safe'] ]; } }