From e92f83d094e95d87141ad3ac61fa95c8390cfd62 Mon Sep 17 00:00:00 2001 From: Christian Bieg Date: Tue, 28 Apr 2020 15:15:16 +0200 Subject: [PATCH 1/2] Fixed a copy-paste error in the crud.md --- Resources/doc/crud.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/doc/crud.md b/Resources/doc/crud.md index 0b54d6f3..bc3e436d 100644 --- a/Resources/doc/crud.md +++ b/Resources/doc/crud.md @@ -5,7 +5,7 @@ For all steps below we assume that there is an `AppBundle` with the `Content` document. ```php -// src/Document/Product.php +// src/Document/Content.php namespace App\Document; From b7dd13b37060b555d41b9cae6fc324d4646206e2 Mon Sep 17 00:00:00 2001 From: Christian Bieg Date: Tue, 28 Apr 2020 15:19:21 +0200 Subject: [PATCH 2/2] Update mapping.md --- Resources/doc/mapping.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Resources/doc/mapping.md b/Resources/doc/mapping.md index 0722b74b..3c874713 100644 --- a/Resources/doc/mapping.md +++ b/Resources/doc/mapping.md @@ -103,7 +103,7 @@ You can find more information about analysis at [the elasticsearch docs](https:/ Lets start with a document class example. ```php -// src/Document/Content.php +// src/Document/MyIndex.php namespace App\Document; @@ -161,7 +161,7 @@ Here's the list of all available parameters: ```php -// src/Document/Product.php +// src/Document/MyIndex.php namespace App\Document; use ONGR\ElasticsearchBundle\Annotation as ES; @@ -190,7 +190,7 @@ To define a nested or object type you have to use `@ES\Embedded` annotation and class for this annotation. Here's an example, lets assume we have a `Product` type with `CategoryObject` as object field. ```php -// src/AppBundle/Document/Product.php +// src/Document/Product.php namespace App\Document;