-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Support NOT
expression
#10234
Support NOT
expression
#10234
Conversation
Converting to draft until then 👍 |
This should target 2.14.x since it's a new feature. Also, should docs be updated? |
The reason I put it under 3.0.x was that I assumed forcing an update to But, if you tell me that's not a problem, I'll be glad to rebase my branch on |
🤔 you're right, that won't be OK… but maybe you can make the new ORM feature optional? Meaning that if |
@greg0ire I have no idea on how to do that 😅 . If you can point me to some resource on the matter, I'll be glad to try something. And I will update the doc, of course. |
A way to detect that your feature is present would be to use |
Ok, so I've done that. For my use case I don't think I need to throw any exception as if it's a previous version of Still waiting for the I just found one relevant reference to the |
Let's wait for a green build before doing that… it would be a shame to release v2.1.0 only to have to release v2.1.1 immediately after in case we are missing something. |
I just updated |
Let's wait on #10239 |
What's the status of this PR? |
I was waiting on the pipeline to be launched after rebasing my branch because something else broke it. But it seems in the mean time, some other commits broke it, so I've rebased it again and this should be good now. |
* 2.15.x: Support of NOT expression from doctrine/collections ^2.1 (doctrine#10234) Fix Psalm errors with Collection 2.1.2 (doctrine#10343) Added warning about query cache in relation to parameters (doctrine#10276)
This PR aims at providing support for the
NOT
expression which might to be a part ofdoctrine/collections
in the future.It is not mergeable as it references a branch that has not been merged yet intodoctrine/collections
(see PR #348 ondoctrine/collections
) but will be updated as soon as it is.doctrine/collections
2.1.0
having been released, this PR is now complete.Given the fact that the
not
expression is already supported byDoctrine\ORM\Query\Expr
, it is pretty straightforward.