diff --git a/docs/en/reference/capped-collections.rst b/docs/en/reference/capped-collections.rst index 1de789a644..235089c3ea 100644 --- a/docs/en/reference/capped-collections.rst +++ b/docs/en/reference/capped-collections.rst @@ -91,11 +91,11 @@ You can drop the collection too if it already exists: $documentManager->getSchemaManager()->dropDocumentCollection('Category'); -If using Symfony in addition to Doctrine, use the following command to create the capped collection: +Use the ``odm:schema:create`` command to create the database schema: -.. code-block:: bash +.. code-block:: console - php app/console --env= doctrine:mongodb:schema:create + $ php mongodb.php odm:schema:create It must not exist when the command is invoked. It is not possible to convert an existing collection to a capped one using Doctrine. It is, however, possible to convert it by calling a `direct Mongo command`_.