October: League\Csv incompatibility

Created on 16 Apr 2020  路  1Comment  路  Source: octobercms/october

October Build 465 (wip/laravel-6)
Plugin: RainLab Blog
Steps to reproduce: Import any file..

The Backend\Models\ImportModel throws an exception during CSV imports.
Message: Call to undefined method League\Csv\Reader::addFilter()

The package changelog / website docs says that these methods have been deprecated in v9.

The CSV records filtering methods are removed in favor of the League\Csv\Statement class:
- League\Csv\AbstractCsv::addFilter,
- League\Csv\AbstractCsv::addSortBy,
- League\Csv\AbstractCsv::setOffset,
- League\Csv\AbstractCsv::setLimit;

This version seems to be added to the L6 upgrade branch.

High Completed Bug

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings