In Quick, what's the best way to create a bunch of hasManyThrough relationship records for a given entity? I tried using fill and passing the relationship but I get "Method does not exist on QueryBuilder [applySetter]"
John Liljegren
08/23/2023, 4:40 PM
Maybe I need to create multiple records a different way, but I don't see any methods to create more than one object at once - do I need to use qb for that?
s
sknowlton
08/23/2023, 5:21 PM
I don't think Quick will do a bulk insert. Could be mistaken, but I prefer QB for that stuff anyway
j
John Liljegren
08/23/2023, 7:28 PM
is there a way to get a reference to qb through quick?
s
sknowlton
08/23/2023, 7:36 PM
GetQB() or asQuery()
j
John Liljegren
08/23/2023, 7:44 PM
thanks... i added a property with inject="QuickQB@quick" and it seems to work
s
sknowlton
08/23/2023, 10:06 PM
That will get you a fresh QuickBuilder, which is not exactly the same thing as the one attached to the instance of whatever entity you're working on