Skip to content

Commit c335e6c

Browse files
committed
minor symfony#13747 [RememberMe] add doctrine migration note (ottaviano)
This PR was merged into the 3.4 branch. Discussion ---------- [RememberMe] add doctrine migration note Add a note for DoctrineMigrationsBundle to ignore the new table `rememberme_token` Commits ------- 5805478 [RememberMe] add doctrine migration note
2 parents 80edf33 + 5805478 commit c335e6c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

security/remember_me.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,34 @@ so ``DoctrineTokenProvider`` can store the tokens:
313313
`username` varchar(200) NOT NULL
314314
);
315315
316+
.. note::
317+
318+
If you use DoctrineMigrationsBundle to manage your DB migrations, you will need to tell Doctrine to ignore this new
319+
`rememberme_token` table with :
320+
321+
.. configuration-block::
322+
323+
.. code-block:: yaml
324+
325+
doctrine:
326+
dbal:
327+
schema_filter: ~^(?!rememberme_token)~
328+
329+
.. code-block:: xml
330+
331+
<doctrine:dbal schema-filter="~^(?!rememberme_token)~" .../>
332+
333+
334+
.. code-block:: php
335+
336+
$container->loadFromExtension('doctrine', [
337+
'dbal' => [
338+
'schema_filter' => '~^(?!rememberme_token)~',
339+
// ...
340+
],
341+
// ...
342+
]);
343+
316344
Finally, set the ``token_provider`` option of the ``remember_me`` config to the
317345
service you just created:
318346

0 commit comments

Comments
 (0)