refactored BaseActiveRecord::isPrimaryKey()