I have two classes:
Class Example.Parent Extends %Persistent
{
Property Name As %String;
Property Description As %String;
Property Children as list of Example.Child;
}Class Example.Child Extends %Persistent { Property Name As %String; Property Description As %String; }
A parent can have many children. I want to query for parents and add children for each parent to my result.
Here is the code that I query with:
Class Example.QueryParents [ Abstract ]
{
ClassMethod QueryParents() As %String
{
Set query = "SELECT %ID ID, Name, Description FROM Example.

.png)


.png)


