-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Unable to extends ShopBillingData #11625
Labels
Potential Bug
Potential bugs or bugfixes, that needs to be reproduced.
Comments
lchrusciel
added
the
Potential Bug
Potential bugs or bugfixes, that needs to be reproduced.
label
Jul 7, 2020
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
stale
bot
added
the
Stale
Issues and PRs with no recent activity, about to be closed soon.
label
Oct 12, 2020
Hi @lchrusciel Can you reopen this issue, please? |
stale
bot
removed
the
Stale
Issues and PRs with no recent activity, about to be closed soon.
label
Oct 13, 2020
In Sylius 1.8.3, I have this error when I run
|
lchrusciel
added a commit
that referenced
this issue
Oct 29, 2020
This PR was merged into the 1.7 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | fixes #11625 | License | MIT Fix the relation between Channel and ShopBillingData to allow override the ShopBillingData entity. Commits ------- 7f68b62 Use ShopBillingDataInterface instead of ShopBillingData
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sylius version affected: 1.7.0+
Description
The overriding of the
Sylius\Component\Core\Model\ShopBillingData
resource does not work.This error has been displayed on channel edit action:
complement
is a custom property added with my custom class.Steps to reproduce
Extends the class
Sylius\Component\Core\Model\ShopBillingData
in your projectApp\Entity\Channel\ShopBillingData
.Add a new property.
Add this in file
config/packages/_sylius.yaml
:Extends the form
Sylius\Bundle\CoreBundle\Form\Type\ShopBillingDataType
.Generate database migration and apply-it.
Go to the admin UI and click on the edit link for any channel.
Possible Solution
Redefine the
shopBillingData
association in theChannel
class into your project:Or change the target entity to
Sylius\Component\Core\Model\ShopBillingDataInterface
here : https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/CoreBundle/Resources/config/doctrine/model/Channel.orm.xml#L70The text was updated successfully, but these errors were encountered: