updated method to use new format
only set query on the hasMany relationship when the source mapper exists