From 82aa4cac8d2a8818b0be3dd17f571641af196ebd Mon Sep 17 00:00:00 2001 From: Erwin Poeze Date: Thu, 28 Jun 2012 14:59:45 +0300 Subject: [PATCH 1/6] typo --- mandango/basic-mapping.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mandango/basic-mapping.rst b/mandango/basic-mapping.rst index 618c5ae..53469a1 100644 --- a/mandango/basic-mapping.rst +++ b/mandango/basic-mapping.rst @@ -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. From 747090765358c8de8cd961161aa05cf12491b642 Mon Sep 17 00:00:00 2001 From: Erwin Poeze Date: Thu, 28 Jun 2012 15:00:59 +0300 Subject: [PATCH 2/6] typo --- mandango/reference-mapping.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mandango/reference-mapping.rst b/mandango/reference-mapping.rst index 32bf17c..62459d1 100644 --- a/mandango/reference-mapping.rst +++ b/mandango/reference-mapping.rst @@ -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 From 34271ec47c5a5bbbe809aed132a086d98d11cddb Mon Sep 17 00:00:00 2001 From: Erwin Poeze Date: Thu, 28 Jun 2012 15:03:33 +0300 Subject: [PATCH 3/6] typo --- mandango/embedded-mapping.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mandango/embedded-mapping.rst b/mandango/embedded-mapping.rst index 9ecef56..3574890 100644 --- a/mandango/embedded-mapping.rst +++ b/mandango/embedded-mapping.rst @@ -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 From 432922ec0d98f95cd70da49d13ca31f4b58159c8 Mon Sep 17 00:00:00 2001 From: Erwin Poeze Date: Thu, 28 Jun 2012 15:04:46 +0300 Subject: [PATCH 4/6] typo --- mandango/relation-mapping.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mandango/relation-mapping.rst b/mandango/relation-mapping.rst index bf75398..0cc32e6 100644 --- a/mandango/relation-mapping.rst +++ b/mandango/relation-mapping.rst @@ -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 From 47e594745a9f19bd109555dcc06cf905e8f7b450 Mon Sep 17 00:00:00 2001 From: Erwin Poeze Date: Thu, 28 Jun 2012 15:10:24 +0300 Subject: [PATCH 5/6] $categories() should be $categories? --- mandango/working-with-objects.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mandango/working-with-objects.rst b/mandango/working-with-objects.rst index 0c21f19..6a9bcbc 100644 --- a/mandango/working-with-objects.rst +++ b/mandango/working-with-objects.rst @@ -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(); @@ -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)); From e3aeea4c5c701c640bca074aa9b81d6f53d6582e Mon Sep 17 00:00:00 2001 From: Erwin Poeze Date: Thu, 28 Jun 2012 15:14:34 +0300 Subject: [PATCH 6/6] layout correction --- mandango/repositories.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mandango/repositories.rst b/mandango/repositories.rst index 7b41aad..aa232c7 100644 --- a/mandango/repositories.rst +++ b/mandango/repositories.rst @@ -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,