Allow whereHas on belongsTo relations.