File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
sfdx-source/apex-common-samplecode/main/classes/domains Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,20 @@ public with sharing class Accounts extends fflib_SObjectDomain
42
42
super (sObjectList );
43
43
}
44
44
45
- public void updateOpportunityActivity (fflib_SObjectUnitOfWork uow )
45
+ public void updateOpportunityActivity (fflib_ISObjectUnitOfWork uow )
46
46
{
47
- for (Account account : (List <Account >) Records )
47
+ for (Account account : (List <Account >) this . records )
48
48
{
49
49
account .Description = ' Last Opportunity Raised ' + System .today ();
50
50
uow .registerDirty (account );
51
51
}
52
52
}
53
+
54
+ public class Constructor implements fflib_SObjectDomain .IConstructable
55
+ {
56
+ public fflib_SObjectDomain construct (List <SObject > sObjectList )
57
+ {
58
+ return new Accounts (sObjectList );
59
+ }
60
+ }
53
61
}
You can’t perform that action at this time.
0 commit comments