Infer type of a hasMany relationship from the relationship's key
Make type-inferring of hasMany relationship work with options