function getPrimary($table) { if (isset($this->primary[$table])) { return $this->primary[$table]; } return 'id'; }