Webonaute / DoctrineFixturesGeneratorBundle

Generate Fixture from your existing data in your database. You can specify the Entity name and the IDs you want to import in your fixture.
63 stars 47 forks source link

Ability to exclude vendor mapping #41

Open srosato opened 7 years ago

srosato commented 7 years ago

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!

Webonaute commented 6 years ago

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

Webonaute commented 6 years ago

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

Trekels commented 6 years ago

Anny updates on this issue ?

Webonaute commented 6 years ago

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

Webonaute commented 5 years ago

@Trekels