File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -267,6 +267,36 @@ so ``DoctrineTokenProvider`` can store the tokens:
267
267
`username` varchar(200) NOT NULL
268
268
);
269
269
270
+ .. note ::
271
+
272
+ If you use DoctrineMigrationsBundle to manage your database migrations, you
273
+ will need to tell Doctrine to ignore this new ``rememberme_token `` table:
274
+
275
+ .. configuration-block ::
276
+
277
+ .. code-block :: yaml
278
+
279
+ # config/packages/doctrine.yaml
280
+ doctrine :
281
+ dbal :
282
+ schema_filter : ~^(?!rememberme_token)~
283
+
284
+ .. code-block :: xml
285
+
286
+ # config/packages/doctrine.xml
287
+ <doctrine : dbal schema-filter =" ~^(?!rememberme_token)~" .../>
288
+
289
+ .. code-block :: php
290
+
291
+ # config/packages/doctrine.php
292
+ $container->loadFromExtension('doctrine', [
293
+ 'dbal' => [
294
+ 'schema_filter' => '~^(?!rememberme_token)~',
295
+ // ...
296
+ ],
297
+ // ...
298
+ ]);
299
+
270
300
Finally, set the ``token_provider `` option of the ``remember_me `` config to the
271
301
service you just created:
272
302
You can’t perform that action at this time.
0 commit comments