David Rogers
06/05/2023, 6:54 PMDavid Rogers
06/05/2023, 6:55 PMgetInstance("X")
.firstOrFail()
.someHasOneRelationship()
.asQuery() // HasOne, should be QuickQB (??)
getInstance("X")
.firstOrFail()
.someHasOneRelationship()
.retrieveQuery() // QuickQB
David Rogers
06/05/2023, 6:55 PMasQuery
return a QuickQB here or this is as designed, and we should continue using retrieveQuery?David Rogers
06/05/2023, 6:58 PMelpete
06/05/2023, 7:53 PMasQuery
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.elpete
06/05/2023, 7:53 PMelpete
06/05/2023, 7:53 PMDavid Rogers
06/05/2023, 7:54 PMDavid Rogers
06/05/2023, 7:55 PM