1

I have an Doctrine ArrayCollection of objects User, i want to check if an User exists in this ArrayCollection.

does it exist a method that compare the objects?

Manuel Raf
  • 11
  • 1

1 Answers1

0

You can try to use spl_object_hash with ArrayCollection::exists

mrosiu
  • 71
  • 4