-
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
Remove partial syntax in DQL #10985
Remove partial syntax in DQL #10985
Conversation
Forbidding building partial objects will be attempted in a separate PR, it will require a substantial rework of the tests, they seem to heavily rely on that ability. A possible solution might be to build a factory, allowing us to specify just the properties that we care about. Note that building such objects through that API does not trigger any deprecation. |
0c42805
to
9e1946f
Compare
Converting to draft as I've found more stuff to remove |
3a78c29
to
7c1adbf
Compare
UPGRADE.md
Outdated
@@ -1,5 +1,13 @@ | |||
# Upgrade to 3.0 | |||
|
|||
## BC BREAK: Partial objects are removed | |||
|
|||
- The `PARTIAL` keyword no longer exists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The `PARTIAL` keyword no longer exists. | |
- The `PARTIAL` keyword in DQL no longer exists. |
7c1adbf
to
318aa82
Compare
It is no longer possible to use the "PARTIAL" keyword in a DQL query, or to artificially build an AST with a partial object expression. It is still possible to use the result set mapping API to build partial objects.
318aa82
to
689da1f
Compare
I wonder what was the reasoning behind this move. I use this feature time to time and I know ApiPlatform rely on it. |
The place to discuss that is #8471 |
It is no longer possible to use the
PARTIAL
keyword in a DQL query, or to artificially build an AST with a partial object expression. It is still possible to use the result set mapping API to build partial objects.