2
votes
Accepted
Enterprise Architecture, Domain layer - handling multiple records
The example in fflib-apex-common-samplecode assumes that all opportunities will get a common discount%
Your conundrum is a common one
Option 1
If in fact you want the domain class to apply the ...
1
vote
How do fflib_SObjectDomain methods implement database transactions (trigger context)?
This method is called on before insert, using the parameter Trigger.new; any changes you make to those records will be committed after the trigger completes successfully. When you give a method a ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
domain-layer × 11apex × 7
design-patterns × 4
fflib × 3
soql × 2
marketing-cloud × 1
trigger × 1
lightning × 1
unit-test × 1
code-coverage × 1
sobject × 1
field-level-security × 1
triggercontext × 1
sfmc-business-unit × 1
custom-domain × 1
architecture × 1
mydomain × 1
data-model × 1
cross-domain × 1
ip-warming × 1
object-relational-mapping × 1
email-settings × 1
enhanced-domains × 1