getJoim for belongsTo and hasMany