5541 Posts in 1738 Topics by 1224 members
|Go to End|
24 April 2014 at 5:04pm
Let's assume I have an employee DataObject. If I'm implementing a custom EmployeeCsvBulkLoader class, I can specify a $duplicateChecks array with a key/value pair corresponding to employeeID to ensure no duplicate staff members are added to the database (assuming the employeeID is specified in the CSV file).
This is all well and good but clueless administrators may not know the next available employeeID number to add to each employee in the CSV file (and why should they?). So how can I implement my EmployeeCsvBulkLoader class to detect duplicate rows based on a combination of: FirstName, LastName, and Office??
I feel that this is a much more convenient way to import new employees. It seems like the inability to detect duplicate entries based on composite keys is a big oversight for CSV imports.
Thanks in advance.
|Go to Top|