public function getPrimaryKey() { if ($this->primaryKey === NULL) { $this->primaryKey = $this->grid->getPrimaryKey(); } return $this->primaryKey; }