lib/Doctrine/SkeletonMapper/UnitOfWork.php
public function commit() : void
    {
        $this->eventDispatcher->dispatchPreFlush();

        if ($this->objectsToPersist === [] &&
            $this->objectsToUpdate === [] &&
            $this->objectsToRemove === []
        ) {
            return; // Nothing to do.
        }

        $objects = array_merge(
            $this->objectsToPersist,
            $this->objectsToUpdate,
            $this->objectsToRemove
        );
        $this->eventDispatcher->dispatchPreFlushLifecycleCallbacks($objects);

        $this->eventDispatcher->dispatchOnFlush();

        $this->persister->executePersists();
        $this->persister->executeUpdates();
        $this->persister->executeRemoves();

        $this->eventDispatcher->dispatchPostFlush();

        $this->objectsToPersist = [];
        $this->objectsToUpdate  = [];
        $this->objectsToRemove  = [];
        $this->objectChangeSets = new ChangeSets();
    }
public function commit() : void
    {
        $this->eventDispatcher->dispatchPreFlush();

        if ($this->objectsToPersist === [] &&
            $this->objectsToUpdate === [] &&
            $this->objectsToRemove === []
        ) {
            return; // Nothing to do.
        }

        $objects = array_merge(
            $this->objectsToPersist,
            $this->objectsToUpdate,
            $this->objectsToRemove
        );
        $this->eventDispatcher->dispatchPreFlushLifecycleCallbacks($objects);

        $this->eventDispatcher->dispatchOnFlush();

        $this->persister->executePersists();
        $this->persister->executeUpdates();
        $this->persister->executeRemoves();

        $this->eventDispatcher->dispatchPostFlush();

        $this->objectsToPersist = [];
        $this->objectsToUpdate  = [];
        $this->objectsToRemove  = [];
        $this->objectChangeSets = new ChangeSets();
    }
public function commit ( ) : void { $ this -> eventDispatcher -> dispatchPreFlush ( ) ; if ( $ this -> objectsToPersist === [ ] && $ this -> objectsToUpdate === [ ] && $ this -> objectsToRemove === [ ] ) { return ; // Nothing to do. } $ objects = array_merge ( $ this -> objectsToPersist , $ this -> objectsToUpdate , $ this -> objectsToRemove ) ; $ this -> eventDispatcher -> dispatchPreFlushLifecycleCallbacks ( $ objects ) ; $ this -> eventDispatcher -> dispatchOnFlush ( ) ; $ this -> persister -> executePersists ( ) ; $ this -> persister -> executeUpdates ( ) ; $ this -> persister -> executeRemoves ( ) ; $ this -> eventDispatcher -> dispatchPostFlush ( ) ; $ this -> objectsToPersist = [ ] ; $ this -> objectsToUpdate = [ ] ; $ this -> objectsToRemove = [ ] ; $ this -> objectChangeSets = new ChangeSets ( ) ; }
Commit the contents of the unit of work.
Commit the contents of the unit of work .