-
-
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
[ProductBundle] Fix default repository for sylius product association type #10379
Conversation
loic425
commented
May 13, 2019
Q | A |
---|---|
Branch? | 1.3 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Related tickets | mentioned in #10350 |
License | MIT |
src/Sylius/Bundle/ProductBundle/test/src/Tests/SyliusProductBundleTest.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ProductBundle/test/src/Tests/SyliusProductBundleTest.php
Outdated
Show resolved
Hide resolved
The base of this pull-request was changed, you need fetch and reset your local branch Unless you added new commits (to this branch) locally that you did not push yet, Feel free to ask for assistance when you get stuck 👍 |
92946e1
to
ca57b7b
Compare
Can you rebase one more time to 1.3? #10386 has a fix for the build |
467d6ba
to
3c52a52
Compare
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -14,6 +14,7 @@ | |||
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | |||
<parameters> | |||
<parameter key="sylius.repository.product.class">Sylius\Bundle\ProductBundle\Doctrine\ORM\ProductRepository</parameter> | |||
<parameter key="sylius.repository.product_association_type.class">Sylius\Bundle\ProductBundle\Doctrine\ORM\ProductAssociationTypeRepository</parameter> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we then remove this configuration? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lchrusciel @GSadee Ok with that ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lchrusciel @Zales0123
This doesn't work... we forgot something...
This line returns EntityRepository.
However this following command
bin/console debug:container | grep repository.product_association_type
returns
sylius.repository.product_association_type Sylius\Bundle\ProductBundle\Doctrine\ORM\ProductAssociationTypeRepository
sylius.repository.product_association_type_translation Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this is the right repository on ResourceController.
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. |