public function delete(PersistentCollectionInterface $coll)
    {
        $mapping = $coll->getMapping();
        if ($mapping->isInverseSide) {
            return; // ignore inverse side
        }
        if ($mapping->strategy === PropertyMetadata::STORAGE_STRATEGY_ATOMIC_SET) {
            throw new \UnexpectedValueException(sprintf('%s delete collection strategy should have been handled by DocumentPersister. Please report a bug in issue tracker', $mapping->strategy));
        }

        list($qb, $path, $parent) = $this->getQueryPathAndParent($coll);

        $path->remove();
        $this->executeQuery($qb, $parent);
    }
public function delete(PersistentCollectionInterface $coll)
    {
        $mapping = $coll->getMapping();
        if ($mapping->isInverseSide) {
            return; // ignore inverse side
        }
        if ($mapping->strategy === PropertyMetadata::STORAGE_STRATEGY_ATOMIC_SET) {
            throw new \UnexpectedValueException(sprintf('%s delete collection strategy should have been handled by DocumentPersister. Please report a bug in issue tracker', $mapping->strategy));
        }

        list($qb, $path, $parent) = $this->getQueryPathAndParent($coll);

        $path->remove();
        $this->executeQuery($qb, $parent);
    }
public function delete ( PersistentCollectionInterface $ coll ) { $ mapping = $ coll -> getMapping ( ) ; if ( $ mapping -> isInverseSide ) { return ; // ignore inverse side } if ( $ mapping -> strategy === PropertyMetadata :: STORAGE_STRATEGY_ATOMIC_SET ) { throw new \ UnexpectedValueException ( sprintf ( '%s delete collection strategy should have been handled by DocumentPersister. Please report a bug in issue tracker' , $ mapping -> strategy ) ) ; } list ( $ qb , $ path , $ parent ) = $ this -> getQueryPathAndParent ( $ coll ) ; $ path -> remove ( ) ; $ this -> executeQuery ( $ qb , $ parent ) ; }
Deletes a PersistentCollection instance completely from a document using REMOVE.

@param PersistentCollectionInterface $coll
Deletes a PersistentCollection instance completely from a document using REMOVE .