Doctrine\Common\Collections\Collection::remove
Removes the element at the specified index from the collection.
Signature
public function remove(string|integer
$key )
Parameters
$key
— object- The kex/index of the element to remove.
Returns
- mixed
- The removed element or NULL, if the collection did not contain the element.