Domain/Domain.php
protected function doDeleteList(ResourceListInterface $resources, $autoCommit, $soft = true)
    {
        $hasError = false;
        $hasFlushError = false;

        foreach ($resources as $i => $resource) {
            list($continue, $hasError) = $this->prepareDeleteResource($resource, $autoCommit, $hasError, $hasFlushError);

            if (!$continue) {
                $skipped = $this->doDeleteResource($resource, $soft);
                $hasFlushError = $this->doAutoCommitFlushTransaction($resource, $autoCommit, $skipped);
                $hasError = $this->finalizeResourceStatus($resource, ResourceStatutes::DELETED, $hasError);
            }
        }

        return $hasError;
    }
protected function doDeleteList(ResourceListInterface $resources, $autoCommit, $soft = true)
    {
        $hasError = false;
        $hasFlushError = false;

        foreach ($resources as $i => $resource) {
            list($continue, $hasError) = $this->prepareDeleteResource($resource, $autoCommit, $hasError, $hasFlushError);

            if (!$continue) {
                $skipped = $this->doDeleteResource($resource, $soft);
                $hasFlushError = $this->doAutoCommitFlushTransaction($resource, $autoCommit, $skipped);
                $hasError = $this->finalizeResourceStatus($resource, ResourceStatutes::DELETED, $hasError);
            }
        }

        return $hasError;
    }
protected function doDeleteList ( ResourceListInterface $ resources , $ autoCommit , $ soft = true ) { $ hasError = false ; $ hasFlushError = false ; foreach ( $ resources as $ i => $ resource ) { list ( $ continue , $ hasError ) = $ this -> prepareDeleteResource ( $ resource , $ autoCommit , $ hasError , $ hasFlushError ) ; if ( ! $ continue ) { $ skipped = $ this -> doDeleteResource ( $ resource , $ soft ) ; $ hasFlushError = $ this -> doAutoCommitFlushTransaction ( $ resource , $ autoCommit , $ skipped ) ; $ hasError = $ this -> finalizeResourceStatus ( $ resource , ResourceStatutes :: DELETED , $ hasError ) ; } } return $ hasError ; }
Do delete the resources.

@param ResourceListInterface $resources  The list of object resource instance
@param bool                  $autoCommit Commit transaction for each resource or all
(continue the action even if there is an error on a resource)
@param bool                  $soft       The soft deletable

@return bool Check if there is an error in list
Do delete the resources .