It seems quick needs to set the underlying qb instance's returnFormat to an array to function correctly. 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. 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 asetReturnFormat()
in the QuickBuilder class so this method call is not forwarded onto the QuickQB instance.Thoughts?