Using put_assoc in changeset for many to many

I will improve the error message in Ecto but you are returning an empty list when there is no song_params to put_assoc. However, that put_assoc is about a belongs_to relationship and that expects either nil or a struct.

2 Likes