ArrayHelper::map and array query results #20398
Replies: 1 comment
-
I found my bug, I was using a magic property and the array in the query results doesn't have it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it my impression or the method
map
of ArrayHelper isn't working as is expected?For instance, if I have this query:
Using
map
method:It will return an empty array instead the key->value asociation where the key should be the value for 'id' and the value should be the value for 'firstName'.
But if I dump the
$arrayResults
and use the raw array, it will work.Beta Was this translation helpful? Give feedback.
All reactions