From a99c1963e72e2ba76702b4124d898ed850b83ccc Mon Sep 17 00:00:00 2001 From: Robert Baillie Date: Tue, 22 Mar 2022 14:06:11 +0000 Subject: [PATCH] Added getChildren to the DmlRecord --- .../ortoo-core/default/classes/services/dml/DmlRecord.cls | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/default/ortoo-core/default/classes/services/dml/DmlRecord.cls b/framework/default/ortoo-core/default/classes/services/dml/DmlRecord.cls index d430b40dec7..55fdf0c5902 100644 --- a/framework/default/ortoo-core/default/classes/services/dml/DmlRecord.cls +++ b/framework/default/ortoo-core/default/classes/services/dml/DmlRecord.cls @@ -163,6 +163,11 @@ public virtual inherited sharing class DmlRecord return this.childRecordsByType.get( childRecordType ); } + protected List getChildren( String childRecordType ) + { + return getChildDefiner( childRecordType ).getSobjects(); + } + /** * Sets the DmlDefinerOptions for the given child relationship. *