public function getPrimaryKey($table) { $this->needStructure(); $table = $this->resolveFQTableName($table); if (!isset($this->structure['primary'][$table])) { return NULL; } return $this->structure['primary'][$table]; }