changed serialize hasMany