public function commit() { $this->parentStorage->commit(); }
private function saveMetaEntities(Storage $storage, $entities, $parentReference) { if (count($entities) == 0) { return; } $lastParent = $entities[0][$parentReference]; foreach ($entities as $entity) { if ($entity[$parentReference] !== $lastParent) { $storage->commit(); $this->checkTimeout(); } $storage->saveLater($entity); } $storage->commit(); }