It seems quick needs to set the underlying qb instance's returnFormat to an array to function correctly. Currently you have to call setReturnFormat() on each quick instance if you want to retrieve a query. I am proposing the following changes to allow a user to set the default return format in the coldbox.cfc module settings.
The QuickBuilder will now track its own internal returnFormat. When calling retrieveQuery() on an entity it will set the return format for the underlying qb instance before returning it to the user. I also implemented a setReturnFormat() in the QuickBuilder class so this method call is not forwarded onto the QuickQB instance.
in reference to #186
It seems quick needs to set the underlying qb instance's returnFormat to an
array
to function correctly. Currently you have to callsetReturnFormat()
on each quick instance if you want to retrieve a query. I am proposing the following changes to allow a user to set the default return format in the coldbox.cfc module settings.The QuickBuilder will now track its own internal returnFormat. When calling retrieveQuery() on an entity it will set the return format for the underlying qb instance before returning it to the user. I also implemented a setReturnFormat() in the QuickBuilder class so this method call is not forwarded onto the QuickQB instance.
Thoughts?