Skip to content
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

Deprecate ORM related functions on ProxyQueryInterface #6386

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

franmomu
Copy link
Member

Subject

Apparently getUniqueParameterId and entityJoin are only used in the ORM Bundle, in the other persistence bundles (also not maintained ones) the implementation is empty because they are not useful.

I am targeting this branch, because these changes are BC.

Changelog

### Deprecated
- Deprecated `ProxyQueryInterface::getUniqueParameterId`.
- Deprecated `ProxyQueryInterface::entityJoin`.

core23
core23 previously approved these changes Sep 13, 2020
@@ -94,11 +94,19 @@ public function setMaxResults($maxResults);
public function getMaxResults();

/**
* NEXT_MAJOR: Remove this method.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method from the interface.

?

Otherwise it could be a bit misleading IMO

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed it. I think if we usually put NEXT_MAJOR comments next to the every file affected, so I usually understand that if there is no more instructions than Remove this method, it's to remove the method where the NEXT_MAJOR comment is.

BTW I had forgotten to add the comment to the implementation in tests 😬

UPGRADE-3.x.md Outdated Show resolved Hide resolved
UPGRADE-3.x.md Outdated Show resolved Hide resolved
These functions are only implemented in SonataDoctrineORMAdminBundle
@phansys phansys merged commit 480c14b into sonata-project:3.x Sep 14, 2020
@phansys
Copy link
Member

phansys commented Sep 14, 2020

Thank you @franmomu!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants