You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was in need to filter out the duplicate values from an ArrayCollection, but I couldn't find a method to do that. So I had to use array_unique($collection->toArray()) to get the job done.
Is there any reason to not add an unique() method to do such filtering ?
Thanks
The text was updated successfully, but these errors were encountered:
Hi there,
I was in need to filter out the duplicate values from an ArrayCollection, but I couldn't find a method to do that. So I had to use
array_unique($collection->toArray())
to get the job done.Is there any reason to not add an unique() method to do such filtering ?
Thanks
The text was updated successfully, but these errors were encountered: