diff --git a/docs/en/reference/migrating-schemas.rst b/docs/en/reference/migrating-schemas.rst index 0b979572b..e59c34327 100644 --- a/docs/en/reference/migrating-schemas.rst +++ b/docs/en/reference/migrating-schemas.rst @@ -41,6 +41,8 @@ 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 + createDocumentCollection(Person::class); @@ -48,6 +50,8 @@ method with the class name as an argument: Once the collection is created, you can also set up indexes with ``ensureIndexes``, and search indexes with ``createSearchIndexes``: +.. code-block:: php + ensureIndexes();