schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
335 stars 254 forks source link

Uncaught exception 'Doctrine\ORM\ORMException' #36

Open jimmy1993k opened 10 years ago

jimmy1993k commented 10 years ago

I get a: Fatal error: Uncaught exception 'Doctrine\ORM\ORMException' with message 'Unknown Entity namespace alias 'JMSJobQueueBundle'.'

On every console command I do.

Edit: Only getting this when using the console Application of the JMSJobQueueBundle.

ReactiveRaven commented 10 years ago

Experiencing Experienced same issue. Symfony 2.3.1, JMSJQB v1.0.0 (d6ed46d)

It turned out my issue was solved by updating my entity manager mappings to add the JMSJobQueueBundle to the mappings as below:

doctrine:
    orm:
        entity_managers:
            default:
                mappings:
                     JMSJobQueueBundle: ~
fnagel commented 2 years ago

Same issue with my tests (so console too) with Symfony 4.4. Sadly, changing the config did not help. Any ideas?