Closed mattleff closed 7 years ago
Sorry, I have totally missed your pull requests. Thank you for them! I'll take a look at them as soon as I can. I'm on a vacation so it may take a day or five 😀
@koskimas (from here)
An option like
selectFiltering
sounds like a reasonable solution to this.
I just saw your edit now. I'll work on adding this to this pull.
From here:
I don't like the idea that users need to remember things like "if I use fragments, I need to call this arbitrary
selectFiltering(false)
method".
^ I totally agree. Is there a way that we could avoid a similar What?! for virtual attributes? Would it be better if the method was named like allowVirtualAttributes(true)
? How can we communicate that there's a connection between selectFiltering
and virtual attributes that reference columns? Wdyt about logging a warning if a model has virtual attributes and select filtering is not disabled?
@koskimas I think this is ready for review now.
Awesome! Thank you so much! I'll release a new version with your additions as soon as I get to my computer.
When a model has virtual attributes that depend on columns that aren't being selected the virtual attributes cause the resolver to return
null
. This can be "fixed" by addingreturn null
here. Would it be possible to make_filterForSelects()
optional?