Exemple #1
0
 /**
  * @internal
  */
 public function access($key, $cache = TRUE)
 {
     if ($this->table->getConnection()->getCache() && !isset($this->modified[$key]) && $this->table->access($key, $cache)) {
         $id = isset($this->data[$this->table->getPrimary()]) ? $this->data[$this->table->getPrimary()] : $this->data;
         $this->data = $this->table[$id]->data;
     }
 }