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

[Docs] Recommend trait usage in Plugin Development Guide #11111

Merged
merged 1 commit into from
Mar 3, 2020

Conversation

Zales0123
Copy link
Member

Q A
Branch? 1.6
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

For a long time already, we provide all entities overridden in Sylius-Standard. This approach enforces annotations mapping by default but allows Sylius to use multiple plugins extending the same entity at the same time.

We should definitely recommend this approach in our Plugin Development Guide.

@Zales0123 Zales0123 added the Documentation Documentation related issues and PRs - requests, fixes, proposals. label Feb 10, 2020
@Zales0123 Zales0123 requested a review from a team as a code owner February 10, 2020 13:32
@JoppeDC
Copy link

JoppeDC commented Feb 10, 2020

Thanks for the further information @Zales0123 , this definetly clears up some misunderstanding.

Copy link
Member

@lchrusciel lchrusciel left a comment

Choose a reason for hiding this comment

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

We could advise, that sample entity should be placed in the test folder in order to check the correctness of mapping

@lchrusciel
Copy link
Member

PS. Nice PR number 🎉


# src/Resources/config/config.yml

sylius_product:
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about recommending this configuration in the test folder, so the entity will be checked if wired up properly (and preferably will be a good introduction for testing)

@lchrusciel lchrusciel merged commit 1860aef into Sylius:1.6 Mar 3, 2020
@lchrusciel
Copy link
Member

Thank you, Mateusz! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Documentation related issues and PRs - requests, fixes, proposals.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants