Question. When using quick orm I have a qb setting...
# box-products
r
Question. When using quick orm I have a qb setting struct in my coldbox.cfc to set the default qb return format to
query
Unfortunately it does not seem like quick honors this when using the
retrieveQuery()
method. Is this the expected behaviour or am I missing somrthing?
s
Quick should honor it
or, hmm
good question
you have only one version of qb installed?
r
Yup. Only one version and it is the latest
s
if you
dump( myQuickEntity.retrieveQuery() )
do you get a QueryBuilder or a QuickBuilder?
r
I get a QuickBuilder instance
s
what happens if you do
myQuickEntity.retrieveQuery().setReturnFormat( 'query' ).get()
?
r
That works 100%
s
I suspect the QuickBuilder isn't respecting the QB modulesetting
which is probably a bug
r
I suspected as much. Not a big deal, I can work around that
s
If you open a bug on the github for Quick it'll probably get dealt with. I may even be able to fix it pretty quickly. I think not many people use that returnformat with qb or quick so probably nobody ever ran into it before
👍 1
r
Gotcha, I have opened a ticket
e
Not really a bug, but we still might support it. Quick makes its own custom QueryBuilder mapping that always uses array because it wants that internally. That's why your settings aren't working.
s
does it want that internally once .retrieveQuery() is called? i.e. is it a safe assumption that once somebody hits the .retrieveQuery() lever, they are never going back to Quick-land?
r
Thats my thought. I want a query but I want to leverage quick to create them. Specifically in subclassed entities, it all automagically done.