Listing multiple values in TextColumn with groupby a certain attribute
How can I Listing multiple values in TextColumn with groupby a certain attribute?
5 Replies
If it's a string:
Or you can do ->formatStateUsing(fn($record) => $data)
and returnt he data in the format you want.
sorry if i'm not make it clear..
in above example, how can I group by the foreign key id of the relationship?

What about:
Providing it is list of id's in an array
it returns error
array_unique(): Argument #1 ($array) must be of type array, int given
for now, I'm using accessor to solve my problem, but it makes the number of my queries in telescope to hundreds..
Sorry. If you removed the ID from the name space it probably would have worked maybe needed to process the the array first to make it into an id array