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