coldbox-modules / quick

A ColdBox ORM Engine
https://quick.ortusbooks.com
MIT License
23 stars 19 forks source link

matchOne missing on belongsToThrough #145

Open MordantWastrel opened 3 years ago

MordantWastrel commented 3 years ago

If you try to eager load a belongsToThrough relationship, Quick throws this error:

 No matching function [MATCHONE] found

on BelongsToThrough.cfc:281 from BaseEntity.cfc:2475.

This function only exists on HasOneOrMany in 4.2.3.

elpete commented 3 years ago

This relationship shouldn't need to call matchOne but should more closely resemble belongsTo#match.