Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

CsvBulkLoader::$duplicateChecks doesn´t work


Reply


2 Posts   1200 Views

Avatar
baba-papa

Community Member, 279 Posts

15 September 2009 at 3:56am

Hi,

I extended the CsvBulkLoader and don´t want duplicates in my database.

public $duplicateChecks = array(
'Studioname' => 'name'
);


The values of the CSV column Studioname should be compared with the connected objects attribute "name". If I import the same CSV file twice all data sets will be doubled. I want existing data sets to be overwritten.

Any help to this issue is appreciated.

Avatar
baba-papa

Community Member, 279 Posts

15 September 2009 at 7:43pm

Does duplicateChecks work only with a primary key?