Doctrine Schema update not responding to ORM Mapping: [OK] No Metadata Classes to process

I’m trying to execute schema update with custom entity manager, so I can select witch entity folder to make an schema update. But with my config I cant make it work.

I have this config:

doctrine:
    orm:
        default_entity_manager: default
        entity_managers:
            default:
                connection: default
                mappings:
                    Main:
                        is_bundle: false
                        type: annotation
                        dir: '%kernel.project_dir%/src/AppBundle/Entity'
                        prefix: 'AppBundle/Entity'
                        alias: Main
            test:
                connection: default
                mappings:
                    test:
                        is_bundle: false
                        type: annotation
                        dir: '%kernel.project_dir%/src/AppBundle/Fixtures/Entity'
                        prefix: 'AppBundle/Fixtures/Entity'
                        alias: test

And when I execute:

bin/console d:s:u --em=test

I get this answer:

bin/console d:s:u --em=test

Any idea?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *