In Quick, what's the best way to create a bunch of...
# box-products
j
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]"
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
I don't think Quick will do a bulk insert. Could be mistaken, but I prefer QB for that stuff anyway
j
is there a way to get a reference to qb through quick?
s
GetQB() or asQuery()
j
thanks... i added a property with inject="QuickQB@quick" and it seems to work
s
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