Eeek there's a rather bad design bug. If I have ``...
# exposed
s
Eeek there's a rather bad design bug. If I have
Copy code
object PlayersTable : IntIdTable(columnName = "player_id") {}

object PlayerDataTable : IntIdTable() {
    override val id = reference("player_id", PlayersTable)
}
Exposed says PlayerData.id doesn't exist. Based on an educated guess, I'd say that this is because IntIdTable already does
Copy code
override val id: Column<EntityID<Int>> = integer(columnName).autoIncrement().primaryKey().entityId()
And the problem here is that it already registered the column. So when PlayerDataTable overrides
id
, it's not truly overriding it.