Hi, I have table song and table genre. Song can co...
# exposed
f
Hi, I have table song and table genre. Song can contains more genres. So I want reference genreIds from table genre. How I can reference to array of foreign keys? For single reference is syntax (integer(“genre_id”) references GenreTable.id) it is working but what about more values?. Or I use it bad?
t
You need an additional table to link many-to-many (songs-to-genres) https://github.com/JetBrains/Exposed/wiki/DAO#many-to-many-reference
👍 1
a
maybe also post the answer to SO for other people
✔️ 1