Correctly update id of inserted models with composite PK