quick 6.2.1 qqq
# box-products
d
quick 6.2.1 qqq
Copy code
getInstance("X")
  .firstOrFail()
  .someHasOneRelationship()
  .asQuery() // HasOne, should be QuickQB (??)

getInstance("X")
  .firstOrFail()
  .someHasOneRelationship()
  .retrieveQuery() // QuickQB
should
asQuery
return a QuickQB here or this is as designed, and we should continue using retrieveQuery?
(edit: typo)
e
asQuery
does not return a QuickQB instance. It returns the same relationship instance or QuickBuilder instance with a flag set to run it as a Query. This is so it can still do things like eager loading.
Quick did have a bug fix release last week that should allow passing QuickBuilder instances to other qb methods.
It might not do well with Relationships, though.
d
(i was just about to clean this thread up, there's no un-delete !...)
thanks for the response, I filed some github stuff for this and a related thing as we migrate to asQuery
👍🏻 1