commit() abstract public méthode

Transfers data from memory (saved by Storage::saveLater()) to the files.
abstract public commit ( )
 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();
 }