Skip to content

Commit 432a551

Browse files
committed
Merge branch '5.0' into 5.1
* 5.0: [RememberMe] add doctrine migration note
2 parents cb7af2a + 1f77945 commit 432a551

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

security/remember_me.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,36 @@ so ``DoctrineTokenProvider`` can store the tokens:
267267
`username` varchar(200) NOT NULL
268268
);
269269
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+
270300
Finally, set the ``token_provider`` option of the ``remember_me`` config to the
271301
service you just created:
272302

0 commit comments

Comments
 (0)