We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea8037 commit 2d7ad73Copy full SHA for 2d7ad73
fflib/src/classes/fflib_SObjectUnitOfWork.cls
@@ -270,13 +270,6 @@ public virtual class fflib_SObjectUnitOfWork
270
// Update the registered record's fields
271
SObject registeredRecord = m_dirtyMapByType.get(sObjectType).get(record.Id);
272
273
- // If the caller has supplied a different instance of the same record with no list of updated fields
274
- if (dirtyFields.isEmpty() && registeredRecord !== record)
275
- {
276
- // Cannot determine what updates to make to the record (assuming updating nothing is incorrect)
277
- throw new UnitOfWorkException('Cannot determine what fields to update on record ' + record);
278
- }
279
-
280
for (SObjectField dirtyField : dirtyFields) {
281
registeredRecord.put(dirtyField, record.get(dirtyField));
282
}
0 commit comments