pim-community-dev
pim-community-dev copied to clipboard
Akeneo 6: Doctrine Entities Mapping shows error
:bug: I'm reporting a Bug :bug:
It ist a fresh installation of Akeneo 6 with Ubuntu 20.04.
The Symfony Profiler shows this error:
Does anybody know how to deal with this message? Thanks!
Im having exactly the same issue under the same stack .... what is wrong?
Same issue happening at v6.0.40 (latest stable).
I haven't run into any errors yet, but still annoying.
Problem comes from these 2 files:
- https://github.com/akeneo/pim-community-dev/blob/v6.0.40/src/Akeneo/Pim/Enrichment/Bundle/Resources/config/doctrine/Product/Group.orm.yml
- https://github.com/akeneo/pim-community-dev/blob/v6.0.40/src/Akeneo/Pim/Enrichment/Bundle/Resources/config/doctrine/Product/Product.orm.yml
And the obvious issue is that there's a inverse side field set in Product.orm.yml
while there's no inverse in Group
.
I'm not too knowledgeable to know if this is a left-over problem from previous configurations...
See https://github.com/akeneo/pim-community-dev/issues/19387 for a fix: add to /src/Akeneo/Pim/Enrichment/Bundle/Resources/config/doctrine/Product/Group.orm.yml
manyToMany:
products:
targetEntity: Akeneo\Pim\Enrichment\Component\Product\Model\ProductInterface
mappedBy: groups
Hello! Thank you for reporting this issue @ibs83278 😃 I handle this issue on my side.