/** * Gets the type of the primary key field for the object. * * @return string The type of the primary key field for this instance. */ public function getPKType() { if ($this->_pktype === null) { if ($this->_pk === null) { $this->getPK(); } $this->_pktype= $this->xpdo->getPKType($this->_class); } return $this->_pktype; }