Replies: 1 comment
-
Hi @hernandezjesus Both methods The domain would look something like:
You would call this logic via:
Notice that in this example the reference to the actual field names are encapsulated in the domain, not in this logic. In this manner only the domain knows about the field names, which makes refactoring a lot easier if you ever need to rename the field. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello and thank you for the time and effort you've given to the community.
I'm doing some testing using fflib_SObjects to understand the best way to inherit and use super class methods.
In my scenario I would like to filter records using
getRecordsWithBlankFieldValues
and then usegetStringFieldValues
to get some field values.I would like to do something like:
My current approach to do something like this is to create a method on the
Contacts class
to return a new instance ofContacts
with theList<SObject>
result ofgetRecordsWithBlankFieldValues
but I'm not sure if is better to handle that from withinfflib_SObjects
.any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions