public function detach($entity)
    {
        $this->entityRegistry->deregisterEntity($entity);
        $objectHashId = $this->entityRegistry->getObjectHashId($entity);
        unset($this->scheduledForInsertion[$objectHashId]);
        unset($this->scheduledForUpdate[$objectHashId]);
        unset($this->scheduledForDeletion[$objectHashId]);
    }
public function detach($entity)
    {
        $this->entityRegistry->deregisterEntity($entity);
        $objectHashId = $this->entityRegistry->getObjectHashId($entity);
        unset($this->scheduledForInsertion[$objectHashId]);
        unset($this->scheduledForUpdate[$objectHashId]);
        unset($this->scheduledForDeletion[$objectHashId]);
    }
public function detach ( $ entity ) { $ this -> entityRegistry -> deregisterEntity ( $ entity ) ; $ objectHashId = $ this -> entityRegistry -> getObjectHashId ( $ entity ) ; unset ( $ this -> scheduledForInsertion [ $ objectHashId ] ) ; unset ( $ this -> scheduledForUpdate [ $ objectHashId ] ) ; unset ( $ this -> scheduledForDeletion [ $ objectHashId ] ) ; }
Detaches an entity from being managed

@param   object $entity The entity to detach

@return  void
Detaches an entity from being managed