Improve fflib_SObjects2.getSObjectsByIdField
Add unit-test and method to domain template Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com>
This commit is contained in:
@@ -703,8 +703,8 @@ public virtual class fflib_SObjects2
|
||||
* @return Returns a map with the records mapped to the given String field value
|
||||
*
|
||||
* @example
|
||||
* Account account = Account.newInstance(records);
|
||||
* Map<String, SObject> accountByName = account.getSObjectsByStringField(Account.AccountName);
|
||||
* Accounts accounts = Account.newInstance(records);
|
||||
* Map<String, List<SObject>> accountByName = accounts.getSObjectsByStringField(Account.AccountName);
|
||||
*/
|
||||
@TestVisible
|
||||
protected virtual Map<String, List<SObject>> getSObjectsByStringField(Schema.SObjectField sObjectField)
|
||||
|
||||
Reference in New Issue
Block a user