Query::toIterable
yields results differently from getResult
#11478
Unanswered
MatTheCat
asked this question in
Support Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given an entity
A
and another entityB
referencingA
,the following query will have its results organized differently depending on how they are fetched.
toIterable
will yield arrays where the first element is instance ofA
and the second instance ofB
.getResult
will return an array alternating instances ofA
andB
.toIterable
’s behavior seems more intuitive to me butgetResult
andgetArrayResult
share a different one. Is that a bug? I couldn’t find anything in the documentation regarding this specific case.Beta Was this translation helpful? Give feedback.
All reactions