adapter: fixed hasMany if join table empty