Skip to content

Commit c1d187e

Browse files
jdeniaudunglas
authored andcommitted
Feat missing api receive (#359)
1 parent 03c62cb commit c1d187e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/operations.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,9 @@ This action will be automatically registered as a service (the service name is t
557557
API Platform automatically retrieves the appropriate PHP entity then deserializes it, and for `POST` and `PUT` requests
558558
updates the entity with data provided by the user.
559559

560+
If you want to bypass the automatic retrieval of the entity, you can set the parameter `_api_receive` to `false`.
561+
This way, it will skip the `Read`, `Deserialize` and `Validate` listeners (see [the event system](events.md) for more information).
562+
560563
Services (`$myService` here) are automatically injected thanks to the autowiring feature. You can type-hint any service
561564
you need and it will be autowired too.
562565

0 commit comments

Comments
 (0)