-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing primary filter lifting to HAVING clause #690
Milestone
Comments
Merged
I really wish to tell you everything is ok :-D But this does not work in postgres: column "author.name" must appear in the GROUP BY. Not sure about creating new issue as it might be connected to this one, so just posting it here. $this->model->books->findBy([
ICollection::OR,
['author->name' => 'Writer 1'],
[CompareGreaterThanFunction::class, [CountAggregateFunction::class, 'tags->id'], 0],
]); |
@stepapo fixed, added more tests 🙏 🤞 |
Found one more, hopefully not a big deal. Just like the first one, AND and OR produce identical query, only correct for AND. $this->model->books->findBy([
ICollection::OR,
['title' => 'Book 1'],
[ICollection::AND, new NoneAggregator, 'tags->id' => 3],
]);
$this->model->books->findBy([
ICollection::AND,
['title' => 'Book 1'],
[ICollection::AND, new NoneAggregator, 'tags->id' => 3],
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally posted by @stepapo in #685 (comment)
The text was updated successfully, but these errors were encountered: