Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/en/reference/migrating-schemas.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ To create the collections for all the document classes, you can use the
For a specific document class, you can use the `createDocumentCollection()`
method with the class name as an argument:

.. code-block:: php

<?php

$schemaManager->createDocumentCollection(Person::class);

Once the collection is created, you can also set up indexes with ``ensureIndexes``,
and search indexes with ``createSearchIndexes``:

.. code-block:: php

<?php

$schemaManager->ensureIndexes();
Expand Down