pim-community-dev icon indicating copy to clipboard operation
pim-community-dev copied to clipboard

Akeneo 6: Doctrine Entities Mapping shows error

Open ibs83278 opened this issue 2 years ago • 2 comments

: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: Akeneo_6_issue

Does anybody know how to deal with this message? Thanks!

ibs83278 avatar Mar 07 '22 14:03 ibs83278

Im having exactly the same issue under the same stack .... what is wrong?

symfony_profiler_akeneo6

lemaybetancourt avatar Mar 22 '22 17:03 lemaybetancourt

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...

XzAeRo avatar Aug 25 '22 16:08 XzAeRo

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

mautz-et-tong avatar Apr 13 '23 11:04 mautz-et-tong

Hello! Thank you for reporting this issue @ibs83278 😃 I handle this issue on my side.

ghoussard avatar Nov 21 '23 10:11 ghoussard