Skip to content

Commit

Permalink
wording
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Jun 24, 2024
1 parent b47ff60 commit bb2beac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/en/tutorials/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ of creation:
Persistent Models
-----------------

To make the above classes persistent, all we need to do is provide Doctrine with
some mapping information so that it knows how to consume the objects and persist
To make the above classes persistent, we need to provide Doctrine with some
mapping information so that it knows how to consume the objects and persist
them to the database.

You can provide your mapping information in Annotations or XML:
Expand Down Expand Up @@ -164,10 +164,10 @@ You can provide your mapping information in Annotations or XML:
.. note::

The `$id` property is a special property that is used to store the unique
identifier of the document. If you do not provide a value for `$id`,
Doctrine will automatically generate an `ObjectId`_ when you persist the
document.
The ``$id`` property above is annotated with the ``#[Id]`` attribute, which
makes it special. It will be use dby Doctrine to store the unique identifier
of the document. If you do not provide a value for ``$id``, Doctrine will
automatically generate an `ObjectId`_ when you persist the document.

That’s it, we have our models, and we can save and retrieve them. Now
all we need to do is to properly instantiate the ``DocumentManager``
Expand Down

0 comments on commit bb2beac

Please sign in to comment.