Open BSN4 opened 2 years ago
so I found a soultion if you add .add_select()
to you query make sure you define .select('*')
.
I think its still a bug where add_select()
wipe out all selects and leaves only the new one
also it would be nice if it throws obvious error Couldn't find relation.id
Describe the bug I have a
HasMany
relation which I am calling it bywith_()
and I want to have.addselect()
but it throws errorgetattr(): attribute name must be string
... you can only have.addselect()
orwith_()
in your query but not bothTo Reproduce
Expected behavior What do you believe should be happening?
It should work
What database are you using?