Added support for multiple hasMany relations with the same table.