DoctrineFixturesGeneratorBundle icon indicating copy to clipboard operation
DoctrineFixturesGeneratorBundle copied to clipboard

Ability to exclude vendor mapping

Open srosato opened this issue 7 years ago • 5 comments

I have the following configuration:

entity_managers:
            default:
                connection: default
                naming_strategy: doctrine.orm.naming_strategy.underscore
                mappings:
                    AppBundle: ~
                    gedmo_translatable:
                        type: annotation
                        prefix: Gedmo\Translatable\Entity
                        dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
                        alias: GedmoTranslatable # (optional) it will default to the name set for the mapping
                        is_bundle: false

But it throws

[LogicException]
  No bundle found for entity namespace Gedmo\Translatable\Entity

I have to comment the gedmo_translatable section for now, since I have not yet translated my database.

I know it is said that vendor entities are not supported yet, but how can I ignore that mapping for now without commenting, since I cannot use an annotation to ignore it?

Of course I am left wondering how I will be able to reverse translations in the future, but I guess this is another issue!

srosato avatar Oct 06 '17 16:10 srosato

This is weird, I have gedmo_translatable setup as well and I dont have this issue.

Webonaute avatar Feb 14 '18 21:02 Webonaute

Sorry for late answer btw. last 6 month was insane!

Webonaute avatar Feb 14 '18 21:02 Webonaute

Anny updates on this issue ?

Trekels avatar Feb 26 '18 11:02 Trekels

Can you setup me a small test case. I can't reproduce on my project.

Webonaute avatar Feb 28 '18 18:02 Webonaute

@Trekels

Webonaute avatar Jan 11 '19 18:01 Webonaute