Doctrine\Common\Collections\ArrayCollection::remove
Removes an element with a specific key/index from the collection.
Signature
public function remove(mixed
$key )
Parameters
$key
— mixed
Returns
- mixed
- The removed element or NULL, if no element exists for the given key.