Hello, good afternoon.
I have a problem using the with method when getting relationships with the fetchRecordSet.

I have a nested code like that:
$operation = $atlas->select(OperationMapper::class) ->with([ 'credit' => [ 'credit_movement' => [ 'creditAttachement', 'attachment', ] ], ]) ->fetchRecordSet();
The result show two records, after we use the getArrayCopy method:
- In the first record, the object attachment came with two positions on array;
- In the second record, the object attachment shows an empty array;
- But both of records has one record each on Attachment object.
How we can solve this problem?
Hello, good afternoon.
I have a problem using the with method when getting relationships with the fetchRecordSet.
I have a nested code like that:
$operation = $atlas->select(OperationMapper::class) ->with([ 'credit' => [ 'credit_movement' => [ 'creditAttachement', 'attachment', ] ], ]) ->fetchRecordSet();The result show two records, after we use the getArrayCopy method:
How we can solve this problem?