Domain/BaseDomain.php
protected function doAutoCommitFlushTransaction(ResourceInterface $resource, $autoCommit, $skipped = false)
    {
        $hasFlushError = $resource->getErrors()->count() > 0;

        if ($autoCommit && !$skipped && !$hasFlushError) {
            $rErrors = $this->flushTransaction($resource->getRealData());
            $resource->getErrors()->addAll($rErrors);
            $hasFlushError = $rErrors->count() > 0;
        }

        return $hasFlushError;
    }
protected function doAutoCommitFlushTransaction(ResourceInterface $resource, $autoCommit, $skipped = false)
    {
        $hasFlushError = $resource->getErrors()->count() > 0;

        if ($autoCommit && !$skipped && !$hasFlushError) {
            $rErrors = $this->flushTransaction($resource->getRealData());
            $resource->getErrors()->addAll($rErrors);
            $hasFlushError = $rErrors->count() > 0;
        }

        return $hasFlushError;
    }
protected function doAutoCommitFlushTransaction ( ResourceInterface $ resource , $ autoCommit , $ skipped = false ) { $ hasFlushError = $ resource -> getErrors ( ) -> count ( ) > 0 ; if ( $ autoCommit && ! $ skipped && ! $ hasFlushError ) { $ rErrors = $ this -> flushTransaction ( $ resource -> getRealData ( ) ) ; $ resource -> getErrors ( ) -> addAll ( $ rErrors ) ; $ hasFlushError = $ rErrors -> count ( ) > 0 ; } return $ hasFlushError ; }
Do the flush transaction for auto commit.

@param ResourceInterface $resource   The resource
@param bool              $autoCommit The auto commit
@param bool              $skipped    Check if the resource is skipped

@return bool Returns if there is an flush error
Do the flush transaction for auto commit .