Skip to content

Commit

Permalink
Use real object ids and reword introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Jun 21, 2024
1 parent 2704956 commit b6840a3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/en/reference/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Introduction
What is Doctrine MongoDB ODM?
-----------------------------

Doctrine MongoDB ODM (Object Document Mapper) is a PHP 8.1+ library that provides
an abstraction layer to work with `MongoDB`_ documents in PHP applications.
It allows developers to map PHP objects to MongoDB documents, enabling an
intuitive and structured approach to handling data within a MongoDB database.
Doctrine MongoDB ODM (Object Document Mapper) is an object modeling library for
PHP applications. It allows developers to map PHP objects to `MongoDB`_
documents, enabling an intuitive and structured approach to handling data within
a MongoDB database.

Features Overview
-----------------
Expand Down Expand Up @@ -172,13 +172,13 @@ The above would insert the following documents into MongoDB collections:

// Project collection
{
_id: ObjectId("..2"),
_id: ObjectId("6674375a140216f6730b2263"),
name: "New Project"
}

// Manager collection
{
_id: ObjectId("..3"),
_id: ObjectId("6674375a140216f6730b2264"),
changes: 0,
notes: [],
name: "Manager",
Expand All @@ -194,7 +194,7 @@ The above would insert the following documents into MongoDB collections:

// Employee collection
{
_id: ObjectId("..1"),
_id: ObjectId("6674375a140216f6730b2262"),
changes: 0,
notes: [],
name: "Employee",
Expand Down Expand Up @@ -224,7 +224,7 @@ efficient update query using the atomic operators:
$dm->persist($newProject);
$dm->flush();
The above could would produce an update to Manager's collection that looks
The above code would produce an update to Manager's collection that looks
something like this:

::
Expand All @@ -245,7 +245,7 @@ something like this:
$each: [
{
$ref: "Project",
$id: ObjectId("..5")
$id: ObjectId("6674375a140216f6730b2265")
}
]
}
Expand Down

0 comments on commit b6840a3

Please sign in to comment.