protected function accessColumn($key, $selectColumn = TRUE) { $this->table->accessColumn($key, $selectColumn); if ($this->table->getDataRefreshed() && !$this->dataRefreshed) { $this->data = $this->table[$this->getSignature()]->data; $this->dataRefreshed = TRUE; } }
/** * @internal */ public function accessColumn($key, $selectColumn = TRUE) { $this->table->accessColumn($key, $selectColumn); if ($this->table->getDataRefreshed() && !$this->dataRefreshed) { $this->data = $this->table[$this->getSignature()]->data; $this->dataRefreshed = TRUE; } return array_key_exists($key, $this->data); }
protected function accessColumn($key, $selectColumn = TRUE) { if (isset($this->modified[$key])) { return; } $this->table->accessColumn($key, $selectColumn); if ($this->table->getDataRefreshed() && !$this->dataRefreshed) { $this->data = $this->table[$this->getSignature()]->data; $this->dataRefreshed = TRUE; } }
/** * @internal */ public function accessColumn($key, $selectColumn = TRUE) { if ($this->table->accessColumn($key, $selectColumn) && !$this->dataRefreshed) { if (!isset($this->table[$this->getSignature()])) { throw new Nette\InvalidStateException("Database refetch failed; row with signature '{$this->getSignature()}' does not exist!"); } $this->data = $this->table[$this->getSignature()]->data; $this->dataRefreshed = TRUE; } return isset($this->data[$key]) || array_key_exists($key, $this->data); }