Get all ids of entity indexby another column #11055
Unanswered
SebastienLcmt
asked this question in
Support Questions
Replies: 1 comment
-
any updates on this? |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I would please appreciate some help on what seemed like a small problem.
I have an entity s with a 'name' column, and all I am trying to do is to get all ids indexed By that name column (['name1' => id1, 'name2 => id2, etc]). So a good old associative array.
I have tried A LOT of things but i can't seem to get it to work. I won't get the name column unless i select it, but then I get something like
['name1' => ['id' => 1, 'name' => name1].
Which is not what I want.
Thank you in advance for your time.
Beta Was this translation helpful? Give feedback.
All reactions