public function key() { if ($this->id_col === null) { $this->id_col = $this->crit->getTable()->getIdColumn(); } $row = $this->getCurrentRow(); return $row instanceof Row ? $row->get($this->id_col) : null; }