96d0fd75ad
When a collection association (has_many, etc) is searched for negative conditions (NOT...), a JOIN will still include other rows that match. The implied meaning is that it should only select where *none* of the associations match, but the actual result still selects records where *any* of the joined associations match. This implementation removes joins that were added while building the conditions and moves them into a subquery if needed. |
||
---|---|---|
.. | ||
attribute.rb | ||
bindable.rb | ||
condition.rb | ||
grouping.rb | ||
node.rb | ||
sort.rb | ||
value.rb |