/** * Refresh row * * @param SeekR_Row $row */ public final function refreshRow(SeekR_Row $row) { // Reload content if ($data = $this->_db->query("SELECT *\nFROM {$this->_db->quoteIdentifier($this->_name)}\nWHERE " . $this->buildWhere($row->getPrimaryKey()))->fetch(PDO::FETCH_ASSOC)) { $row->setData($data)->setStored(true); } else { throw new Exception("Can't refresh data"); } }