File tree Expand file tree Collapse file tree 2 files changed +53
-5
lines changed Expand file tree Collapse file tree 2 files changed +53
-5
lines changed Original file line number Diff line number Diff line change @@ -889,12 +889,30 @@ up manually by calling the ``messenger:setup-transports`` command.
889
889
To avoid tools like Doctrine Migrations from trying to remove this table because
890
890
it's not part of your normal schema, you can set the ``schema_filter `` option:
891
891
892
- .. code-block :: yaml
892
+ .. configuration-block ::
893
+
894
+ .. code-block :: yaml
895
+
896
+ # config/packages/doctrine.yaml
897
+ doctrine :
898
+ dbal :
899
+ schema_filter : ' ~^(?!messenger_messages)~'
900
+
901
+ .. code-block :: xml
893
902
894
- # config/packages/doctrine.yaml
895
- doctrine :
896
- dbal :
897
- schema_filter : ' ~^(?!messenger_messages)~'
903
+ # config/packages/doctrine.xml
904
+ <doctrine : dbal schema-filter =" ~^(?!messenger_messages)~" .../>
905
+
906
+ .. code-block :: php
907
+
908
+ # config/packages/doctrine.php
909
+ $container->loadFromExtension('doctrine', [
910
+ 'dbal' => [
911
+ 'schema_filter' => '~^(?!messenger_messages)~',
912
+ // ...
913
+ ],
914
+ // ...
915
+ ]);
898
916
899
917
The transport has a number of options:
900
918
Original file line number Diff line number Diff line change @@ -247,6 +247,36 @@ so ``DoctrineTokenProvider`` can store the tokens:
247
247
`username` varchar(200) NOT NULL
248
248
);
249
249
250
+ .. note ::
251
+
252
+ If you use DoctrineMigrationsBundle to manage your database migrations, you
253
+ will need to tell Doctrine to ignore this new ``rememberme_token `` table:
254
+
255
+ .. configuration-block ::
256
+
257
+ .. code-block :: yaml
258
+
259
+ # config/packages/doctrine.yaml
260
+ doctrine :
261
+ dbal :
262
+ schema_filter : ~^(?!rememberme_token)~
263
+
264
+ .. code-block :: xml
265
+
266
+ # config/packages/doctrine.xml
267
+ <doctrine : dbal schema-filter =" ~^(?!rememberme_token)~" .../>
268
+
269
+ .. code-block :: php
270
+
271
+ # config/packages/doctrine.php
272
+ $container->loadFromExtension('doctrine', [
273
+ 'dbal' => [
274
+ 'schema_filter' => '~^(?!rememberme_token)~',
275
+ // ...
276
+ ],
277
+ // ...
278
+ ]);
279
+
250
280
Finally, set the ``token_provider `` option of the ``remember_me `` config to the
251
281
service you just created:
252
282
You can’t perform that action at this time.
0 commit comments