Save association when primary key is manually set