coldbox-modules / quick

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

Updating Quick 5.3.0 -> 5.3.1 Causes 'WHERE' Exception #224

Closed homestar9 closed 1 year ago

homestar9 commented 1 year ago

After updating Quick from 5.3.0 to 5.3.1, I get the following exception when I try to execute the following:

var user = wirebox.getInstance( "User" )
            .where( "emailAddress", username )
            .firstOrNew();

The error is: Quick couldn't figure out what to do with [where]. The error returned was: Method does not exist on QueryBuilder [mergeDefaultOptions] We tried checking columns, aliases, scopes, and relationships locally. We also forwarded the call on to qb to see if it could do anything with it, but it couldn't.

Engine: ACF 2021 Database: MSSQL Server

homestar9 commented 1 year ago

I suspect it may have to do with this commit: https://github.com/coldbox-modules/quick/commit/c195cf1303d62de2c457098ad277333d8e384a39 where setDefaultOptions was changed to mergeDefaultOptions

homestar9 commented 1 year ago

Please disregard. As it turned out, I had an older version of QB installed as a dependency. I removed it, and let Quick handle installing QB and the issue resolved itself. Phew!