d
quick6 q
migrating from
retrieveQuery
to
asQuery
:
Copy code
utils = getInstance("QueryUtils@qb") 
entity = getInstance("qUser")
builder = entity.retrieveQuery()
quickBuilder = entity.asQuery()
	
// actual: true, false
// should be: true, true (???)
writedump([utils.isBuilder(builder), utils.isBuilder(quickBuilder)])
maybe bug, maybe as-designed
this breaks at least the following:
Copy code
function scopeX( qb ) {
  /*
"The function [normalizeToArray] has an invalid return value , [Cannot cast Object type [Component   quick.models.QuickBuilder] to a value of type [array]]"
  */
  qb.whereIn("column", getInstance("foo").something().asQuery()) // was retrieveQuery
}
s
How would
QueryUtils@qb
know about
QuickBuilder
though
since QuickBuilder doesn't exist in qb
d
It Worked Before™
🤣 2
s
haha, fair enough. paging @elpete 🙂
e
Yeah, this is the case you brought up before. QuickBuilder needs to be taught to recognize other QuickBuilders in these scenarios. For these only use `retrieveQuery`/`getQB` right now and please file an issue. 👍🏻
👍 1
Fixed in Quick 6.2.1