WARNING: You are browsing the documentation for version 4.0 which is not maintained anymore. If some of your projects are still using this version, consider upgrading.

Console Commands

Console CommandsΒΆ

The Doctrine2 ODM integration offers several console commands under the doctrine:mongodb namespace. To view the command list you can run the console without any arguments:

1
php bin/console

A list of available command will print out, many of which start with the doctrine:mongodb prefix. You can find out more information about any of these commands (or any Symfony command) by running the help command. For example, to get details about the doctrine:mongodb:query task, run:

1
php bin/console help doctrine:mongodb:query

Note

To be able to load data fixtures into MongoDB, you will need to have the DoctrineFixturesBundle bundle installed. To learn how to do it, read the "DoctrineFixturesBundle" entry of the documentation.

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.