Doctrine\Common\Collections\ArrayCollection::contains
Checks whether the given element is contained in the collection.
Only element values are compared, not keys. The comparison of two elements is strict, that means not only the value but also the type must match. For objects this means reference equality.
Signature
public function contains(mixed
$element )
Parameters
$element
— mixed
Returns
- boolean
- TRUE if the given element is contained in the collection,
FALSE otherwise.