Doctrine\ODM\MongoDB\UnitOfWork::executeUpdates PHP Method

executeUpdates() private method

Executes all document updates for documents of the specified type.
private executeUpdates ( ClassMetadata $class, array $documents, array $options = [] )
$class Doctrine\ODM\MongoDB\Mapping\ClassMetadata
$documents array Array of documents to update
$options array Array of options to be used with update()
    private function executeUpdates(ClassMetadata $class, array $documents, array $options = array())
    {
        $className = $class->name;
        $persister = $this->getDocumentPersister($className);
        foreach ($documents as $oid => $document) {
            $this->lifecycleEventManager->preUpdate($class, $document);
            if (!empty($this->documentChangeSets[$oid]) || $this->hasScheduledCollections($document)) {
                $persister->update($document, $options);
            }
            unset($this->documentUpdates[$oid]);
            $this->lifecycleEventManager->postUpdate($class, $document);
        }
    }
UnitOfWork