Fix hasMany not being serialized