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

Remove unused "$className" argument #6216

Merged
merged 3 commits into from
Jan 12, 2017

Conversation

malukenho
Copy link

@Ocramius Ocramius self-requested a review January 5, 2017 21:34
@Ocramius Ocramius added this to the 2.6.0 milestone Jan 5, 2017
* @param string $type
*
* @return string
*/
protected function getSelectJoinColumnSQL($tableAlias, $joinColumnName, $className, $type)
protected function getSelectJoinColumnSQL($tableAlias, $joinColumnName, $type)
Copy link
Member

Choose a reason for hiding this comment

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

This is a minor BC break, and needs to be documented in UPGRADE.md

@malukenho
Copy link
Author

@Ocramius now that I looked at it more deeply, this change can break code on users' side as AbstractEntityInheritancePersister#getSelectJoinColumnSQL is protected and can be overwrited.

Still valid or can be closed?

@@ -1,5 +1,9 @@
# Upgrade to 2.5

## Minor BC BREAK: remove $className parameter on AbstractEntityInheritancePersister#getSelectJoinColumnSQL
Copy link
Member

Choose a reason for hiding this comment

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

removed

Copy link
Member

Choose a reason for hiding this comment

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

Put backticks around AbstractEntityInheritancePersister#getSelectJoinColumnSQL

@@ -1,5 +1,9 @@
# Upgrade to 2.5

## Minor BC BREAK: remove $className parameter on AbstractEntityInheritancePersister#getSelectJoinColumnSQL

As `$className` parameter is not used on its method body, it was safely removed.
Copy link
Member

Choose a reason for hiding this comment

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

s/is not used on its method body/was not used in the method

@Ocramius
Copy link
Member

@Ocramius now that I looked at it more deeply, this change can break code on users' side as AbstractEntityInheritancePersister#getSelectJoinColumnSQL is protected and can be overwrited.

Persisters are internal API, and we don't support custom userland persisters anyway. This is still valid.

@Ocramius Ocramius self-assigned this Jan 12, 2017
@Ocramius Ocramius merged commit 31c40f8 into doctrine:master Jan 12, 2017
@malukenho malukenho deleted the enhancement/remove-unused-param branch January 12, 2017 20:19
maglnet pushed a commit to maglnet/doctrine2 that referenced this pull request Oct 10, 2018
For v2.6.0, $className argument was removed from `AbstractEntityInheritancePersister#getSelectJoinColumnSQL()` via doctrine#6216. However, the documented minor BC break for upgrading to v2.6 was put under Upgrade to 2.5. This commit fixes this by moving it to v2.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants