Skip to content
Snippets Groups Projects
Commit 2100b9ae authored by Seamus Lee's avatar Seamus Lee
Browse files

[REF][PHP8.1] Fix test failure on civiimport unit test because sequence key...

[REF][PHP8.1] Fix test failure on civiimport unit test because sequence key and keys are using id not _id

Additional patches from Eileen
parent 34737ecc
Branches
Tags
No related merge requests found
......@@ -251,4 +251,24 @@ class Import extends CRM_Core_DAO {
return array_merge(self::getFieldsForTable($tableName), self::getSupportedFields());
}
/**
* Defines the default key as 'id'.
*
* @return array
*/
public function keys() {
return ['_id'];
}
/**
* Tells DB_DataObject which keys use autoincrement.
* 'id' is autoincrementing by default.
*
*
* @return array
*/
public function sequenceKey() {
return ['_id', TRUE];
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment