Skip to content

Commit c73ef30

Browse files
committed
[RememberMe] add doctrine migration note
1 parent 6031c1b commit c73ef30

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', array(
337+
'dbal' => array(
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)