Hi there. I testing upgrading QuickORM in my app from 2.5.3 to latest version (4.2.3). I have the follow that now gives me an error:
return wireBox.getInstance(“pr.” & arguments.pr)
.when(structKeyExists(arguments,“DisclosureID”), function ( q ) {
q.DisclosureID(DisclosureID)
})
.when(structKeyExists(arguments,“SponsorCode”), function ( q ) {
q.SponsorCode(SponsorCode)
}).get()
It gives me the following error:
Type: QuickMissingMethod
Messages: Quick couldn’t figure out what to do with [when]. The error returned was: Method does not exist on QueryBuilder [DisclosureID].
Looking at the version history, it looks like the ‘when’ function was removed in version 3.0.0. Was this an oversight or is the ‘when’ functionality no longer supported?
Thanks in advance,
Byron