Skip to content

Commit 07b830c

Browse files
committed
@alanpoulain review
1 parent b11a3a2 commit 07b830c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/data-persisters.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A data persister using [Doctrine ORM](http://www.doctrine-project.org/projects/o
99
is enabled by default. It is able to persist and delete objects that are also mapped as [Doctrine entities](https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/basic-mapping.html).
1010

1111
However, you may want to store data to other persistence layers (ElasticSearch or MongoDB), to separate the public model
12-
of the API and the internal model mapped with the database; or to use patterns such as [CQRS](https://martinfowler.com/bliki/CQRS.html)
12+
of the API and the internal model mapped with the database, or to use patterns such as [CQRS](https://martinfowler.com/bliki/CQRS.html)
1313
to use a separate model for [read operations](data-providers.md) and for updates.
1414

1515
Custom data persisters can be used to do so. A project can include as many data persisters as it needs. The first able to
@@ -55,8 +55,7 @@ final class BlogPostDataPersister implements DataPersisterInterface
5555
If service autowiring and autoconfiguration are enabled (it's the case by default), you are done!
5656

5757
Otherwise, if you use a custom dependency injection configuration, you need to register the corresponding service and add the
58-
`api_platform.data_persister` tag to it. As for collection data providers, the `priority` attribute can be used to order
59-
providers.
58+
`api_platform.data_persister` tag to it. The `priority` attribute can be used to order persisters.
6059

6160
```yaml
6261
# api/config/services.yaml

0 commit comments

Comments
 (0)