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; 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;