/** * @inheritdoc */ public function getPrimaryKey($table) { if (isset($this->tables[$table][self::K_PRIMARY_KEY])) { return $this->tables[$table][self::K_PRIMARY_KEY]; } return parent::getPrimaryKey($table); }
public function getPrimaryKey($table) { if ($table === 'employees') { return 'emp_no'; } if ($table === 'departments') { return 'dept_no'; } return parent::getPrimaryKey($table); }