Skip to content

Commit a7b3f21

Browse files
authored
docs: add doctrine odm state processor (#1726)
1 parent c9adccd commit a7b3f21

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

core/jwt.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ security:
7373
entity:
7474
class: App\Entity\User
7575
property: email
76+
# document:
77+
# class: App\Document\User
78+
# property: email
7679

7780
firewalls:
7881
dev:

core/state-processors.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ services:
135135
bind:
136136
$persistProcessor: '@api_platform.doctrine.orm.state.persist_processor'
137137
$removeProcessor: '@api_platform.doctrine.orm.state.remove_processor'
138+
# If you're using Doctrine MongoDB ODM, you can use the following code:
139+
# $persistProcessor: '@api_platform.doctrine_mongodb.odm.state.persist_processor'
140+
# $removeProcessor: '@api_platform.doctrine_mongodb.odm.state.remove_processor'
138141
# Uncomment only if autoconfiguration is disabled
139142
#arguments: ['@App\State\UserProcessor.inner']
140143
#tags: [ 'api_platform.state_processor' ]

0 commit comments

Comments
 (0)