Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion mandango/basic-mapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ These are the options the Mandango's Core extension accepts, but you can use
more options depending on the extensions you use.

.. note::
You can define as fields as you want to take advantage of the Mongo free
You can define as many fields as you want to take advantage of the Mongo free
schema. Mandango has been designed thinking in that, and to define lots
of fields is not a performance problem.

Expand Down
2 changes: 1 addition & 1 deletion mandango/embedded-mapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Embedded Mapping
The *embedded documents* are documents inside other documents.

To map embeddeds you have to indicate the embedded name and the document class
you are going to embedd.
you are going to embed.

The embedded documents are mapped in the same way as regular documents, so you
just have to indicate that it's an embedded document activating the option
Expand Down
2 changes: 1 addition & 1 deletion mandango/reference-mapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Reference Mapping
=================

References are relations to other documents. MongoDB doesn't
allow joins or foreign keys, nut you can save references to other documents
allow joins or foreign keys, but you can save references to other documents
and later consult them. Mandango allows you to do this very easily.

You just have to indicate the name of the reference and the document class you want
Expand Down
2 changes: 1 addition & 1 deletion mandango/relation-mapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Relation Mapping
================

The relations are relations **from** other documents. They are the opposite to
references, so when we use relations we have to have been defined the reference
references, so when we use relations we have to have defined the reference
as well.

There are three types of relations, and to use one or the other depends on the
Expand Down
2 changes: 1 addition & 1 deletion mandango/repositories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internally::
$articleRepository->save($article);

// saving several documents
$articleRepository->save(array($article1, $article2));
$articleRepository->save(array($article1, $article2));

.. note::
To insert documents it is used the batchInsert_ method,
Expand Down
6 changes: 3 additions & 3 deletions mandango/working-with-objects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ can choose the arguments, and pass them as an array creating the documents::
Identifier
----------

To access the identifier ``_id`` of the mongo documents it is used the
To access the identifier ``_id`` of the mongo documents use the
``->getId()`` method. It returns ``null`` if the document is new::

$id = $article->getId();
Expand Down Expand Up @@ -98,8 +98,8 @@ Adding and deleting referenced documents::
$article->addCategories($categories); // several

// remove one by one
$categories()->remove($category1);
$categories()->remove($category2);
$categories->remove($category1);
$categories->remove($category2);

// removing several at the same time
$categories->remove(array($category1, $category2));
Expand Down