Inheritance: extends Nette\Object, implements Nextras\Orm\Mapper\IMapper
Example #1
0
 public function flush()
 {
     parent::flush();
     $this->cacheRM = [];
     $hash = spl_object_hash($this->connection);
     if (isset(self::$transactions[$hash])) {
         $this->connection->commitTransaction();
         unset(self::$transactions[$hash]);
     }
 }
Example #2
0
 public function flush()
 {
     parent::flush();
     $storageData = $this->readEntityData();
     foreach ($this->dataToStore as $id => $data) {
         $storageData[$id] = $data;
     }
     $this->saveEntityData($storageData);
     $this->dataToStore = [];
 }