Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing config at installation : "Unknown Entity namespace" error. #66

Open
RomainCoupez opened this issue Aug 14, 2019 · 3 comments
Open

Comments

@RomainCoupez
Copy link

RomainCoupez commented Aug 14, 2019

Hi everyone !
Just to let you know that with the last version of symfony (4.3.3), i had to add thoses lines of config in my doctrine.yaml for make the bundle works !

orm: 
     entity_managers: 
           mappings: 
                MgiletNotificationBundle:
                    is_bundle: true
                    type: annotation
                    prefix: 'Mgilet\NotificationBundle\Entity'
                    alias: MgiletNotificationBundle

In case of someone want to use the bundle and have the "Unknown Entity namespace alias 'MgiletNotificationBundle'." error !
Thanks for your work, still really great 👍

@nwafo
Copy link

nwafo commented Sep 17, 2019

merçi bcp . cette erreur ma bcp tracasser l'esprit

@jcgriebel
Copy link

Depuis la mise en place dans symfony 4.4 du pool cache pour doctrine la solution marche en mode Dev et pas en mode Prod
Je n'ai pas trouver de solution autre que supprimer dans config/packages/prod le fichier doctrine.yaml.
Si quelqu'un à une solution je suis preneur.

@jcgriebel
Copy link

jcgriebel commented Jun 24, 2021

J'ai trouvé une solution.
dans config/packages/prod/doctrine.yaml j'ai mis.

doctrine:
    orm:
        auto_generate_proxy_classes: false
        entity_managers:
            Default:
                metadata_cache_driver:
                    type: pool
                    pool: doctrine.system_cache_pool
                query_cache_driver:
                    type: pool
                    pool: doctrine.system_cache_pool
                result_cache_driver:
                    type: pool
                    pool: doctrine.result_cache_pool

framework:
    cache:
        pools:
            doctrine.result_cache_pool:
                adapter: cache.app
            doctrine.system_cache_pool:
                adapter: cache.system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants