handle saves for hasmany relations