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

Admit no prefix as getter #289

Merged
merged 2 commits into from
Dec 29, 2021
Merged

Conversation

jorge-ruukfy
Copy link
Contributor

As an alternative to reflection or closure hacking to properly get the private property whenever not using getXXX() isXXX() accessors,
just added blank prefix '' to call DDD oriented notation (ex. id() )

Is adverted to who want to use this in a future, that if the method returns a valueObject, to use ::CONTAINS operator that casts to string, although the VO must be stringable

As an alternative to reflection or closure hacking to properly get the private property whenever not using `getXXX()` `isXXX()` accessors,
just added blank prefix '' to call DDD oriented notation (ex. `id()` )

Is adverted to who want to use this in a future, that if the method returns a valueObject, to use ::CONTAINS operator that casts to string, although the VO must be stringable
@SenseException
Copy link
Member

Interesting addition prevent classic getter names. Can you please also extend the tests for this naming?

@SenseException
Copy link
Member

Please fix the issues listed in the coding standards results of the build.

@SenseException
Copy link
Member

Looks great. Please adapt your 2 last commit message as described in our contribution guideline. https://www.doctrine-project.org/contribute/index.html#working-on-topic-branches

Added a test for using blank accessor ('id' instead 'getId')
@jorge-ruukfy
Copy link
Contributor Author

@SenseException 🎉

SenseException
SenseException previously approved these changes Dec 27, 2021
@derrabus
Copy link
Member

Do we consider this to be a bugfix? Otherwise, we should target 1.7.x, shouldn't we?

@SenseException SenseException dismissed their stale review December 28, 2021 20:20

This is considered a feature and needs to be merged into the next unreleased version branch

@SenseException
Copy link
Member

You're right. This is a feature.

@derrabus derrabus added this to the 1.7.0 milestone Dec 29, 2021
@derrabus derrabus changed the base branch from 1.6.x to 1.7.x December 29, 2021 15:28
@derrabus derrabus changed the base branch from 1.7.x to 1.6.x December 29, 2021 15:28
@derrabus derrabus changed the base branch from 1.6.x to 1.7.x December 29, 2021 15:37
@derrabus derrabus closed this Dec 29, 2021
@derrabus derrabus reopened this Dec 29, 2021
@derrabus derrabus merged commit c7ad5f9 into doctrine:1.7.x Dec 29, 2021
@jorge-ruukfy jorge-ruukfy deleted the jorge-ruukfy-patch-1 branch March 11, 2022 08:23
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.

None yet

3 participants