public static function bulk_delete($artefactids) { if (empty($artefactids)) { return; } $idstr = join(',', array_map('intval', $artefactids)); db_begin(); delete_records_select('artefact_internal_profile_email', 'artefact IN (' . $idstr . ')'); parent::bulk_delete($artefactids); db_commit(); }