Fixing loading the correct adapter in belongsTo and hasMany relations