Fixed identity columns in M:N and 1:N associations (bug introduced in
last commit)