Fosuserbundle: The EntityManager is closed.

Created on 16 Jul 2016  路  3Comments  路  Source: FriendsOfSymfony/FOSUserBundle

Symfony > fos:user:create admin --super-admin
Please choose an email:[email protected]
Please choose a password:

[Doctrine\ORM\ORMException]
The EntityManager is closed.

fos:user:create [--super-admin] [--inactive] [--]

The command terminated with an error status (1)
Symfony >

Most helpful comment

It looks like you are using the console shell. Please don't do it. This make all commands run in the same PHP process, meaning they are impacted by previous commands (this is the reason why the shell has been removed in Symfony 3)

All 3 comments

And what exactly is the Exception? Stacktrace?

It looks like you are using the console shell. Please don't do it. This make all commands run in the same PHP process, meaning they are impacted by previous commands (this is the reason why the shell has been removed in Symfony 3)

See above.

Was this page helpful?
0 / 5 - 0 ratings