8000 Workflow: align Example for property access with implementation of Me… by simon-schubert · Pull Request #12988 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Workflow: align Example for property access with implementation of Me… #12988

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

Merged

Conversation

simon-schubert
Copy link
Contributor

The Implementation in Symfony\Component\Workflow\MarkingStore\MethodMarkingStore does not use symfony/property-access (as the former implementations like e.g. SingleStateMarkingStore did) and requires to have getter/setter implemented in your entity. Therefore the example in docs does not work (any longer). I don't know, why the usage of symfony/property-access was dropped, but it seemed to me not accidentally. That's why I decided to send a PR to update docs. But maybe the implementation is "wrong" and should be changed instead. So please check carefully. Thank you.

@OskarStark
Copy link
Contributor

@lyrixx can you please have a look here? Thanks 🙏

Copy link
Member
@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

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

Indeed, It remove the support via Property Accessor to use a plain PHP Method

@javiereguiluz javiereguiluz added this to the 3.4 milestone Jan 30, 2020
@javiereguiluz
Copy link
Member

@lyrixx I'm going to merge this. I saw that the same change can be done in 3.4 branch. Is that correct ... or does this only work starting from another branch? Thanks!

@lyrixx
Copy link
Member
lyrixx commented Jan 30, 2020

@javiereguiluz Thanks for seeking :) But nope. It's only for Symfony 4.3 (so 4.4)
ref: https://symfony.com/blog/new-in-symfony-4-3-workflow-improvements#added-a-context-to-workflow-apply

@OskarStark OskarStark modified the milestones: 3.4, 4.3 Jan 30, 2020
@OskarStark OskarStark changed the base branch from 4.4 to 4.3 January 30, 2020 10:50
@OskarStark OskarStark force-pushed the workflow_marking-store_property_example branch from f295d08 to 5272a25 Compare January 30, 2020 10:50
@OskarStark
Copy link
Contributor
OskarStark commented Jan 30, 2020

Thank you Simon and congrats on your first contribution to the Symfony documentation 🎉

OskarStark added a commit that referenced this pull request Jan 30, 2020
…ation of Me… (simon-schubert)

This PR was submitted for the 4.4 branch but it was squashed and merged into the 4.3 branch instead (closes #12988).

Discussion
----------

Workflow: align Example for property access with implementation of Me…

The Implementation in Symfony\Component\Workflow\MarkingStore\MethodMarkingStore does not use symfony/property-access (as the former implementations like e.g. SingleStateMarkingStore did) and requires to have getter/setter implemented in your entity. Therefore the example in docs does not work (any longer). I don't know, why the usage of symfony/property-access was dropped, but it seemed to me not accidentally. That's why I decided to send a PR to update docs. But maybe the implementation is "wrong" and should be changed instead. So please check carefully. Thank you.

Commits
-------

5272a25 Workflow: align Example for property access with implementation of Me…
@OskarStark OskarStark merged commit 5272a25 into symfony:4.3 Jan 30, 2020
@simon-schubert
Copy link
Contributor Author

thank you @OskarStark , @javiereguiluz and @lyrixx 😄

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.

5 participants
0