A
A
AlpineMilk2020-03-19 13:08:40
symfony
AlpineMilk, 2020-03-19 13:08:40

Problem with translation associations from KNP bundle how to solve?

In the debug panel in the Entities Mapping tab, I get 2 errors:

The association Entity\MenuItemTranslation#translatable refers to the inverse side field Entity\MenuItem#translations which does not exist.


And the same for the second entity

The association PageTranslation#translatable refers to the inverse side field Page#translations which does not exist.


I use this bundle for translations. In entities, traits are connected, interfaces are also inherited. For other entities with the same configuration, everything works (compared line by line).

The strangest thing is that when using the command bin/console doctrine:mapping:infofor absolutely all entities, it shows OK.

Cleared cache, updated composer's dependencies, nothing helps.

Can you advise? Why through the console shows that everything is OK, but in the error panel?

The configuration is done via 'xml' and these files are in the project as a separate bundle
src/
    /Main
    /Этот банл
        /Resources
            /config
                /docrine
                    .. и здесь находятся файлы конфигурации в xml

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question