make belongsTo relationship implement the methods required by whereHas