src/ActiveDoctrine/Entity/EntityCollection.php
public function remove($column, $value)
    {
        foreach ($this->entities as $index => $entity) {
            if ($entity->get($column) === $value) {
                //remove the entity and reset the keys
                unset($this->entities[$index]);
                $this->entities = array_values($this->entities);

                return $entity;
            }
        }

        return;
    }
public function remove($column, $value)
    {
        foreach ($this->entities as $index => $entity) {
            if ($entity->get($column) === $value) {
                //remove the entity and reset the keys
                unset($this->entities[$index]);
                $this->entities = array_values($this->entities);

                return $entity;
            }
        }

        return;
    }
public function remove ( $ column , $ value ) { foreach ( $ this -> entities as $ index => $ entity ) { if ( $ entity -> get ( $ column ) === $ value ) { //remove the entity and reset the keys unset ( $ this -> entities [ $ index ] ) ; $ this -> entities = array_values ( $ this -> entities ) ; return $ entity ; } } return ; }
Remove a single Entity from this collection where column =
value. If more than one Entity is matched, the first will be
removed and returned. If no Entity is matched, null will be
returned.

@param  string $column
@param  string $value
@return mixed  The removed Entity or NULL
Remove a single Entity from this collection where column = value . If more than one Entity is matched the first will be removed and returned . If no Entity is matched null will be returned .