Skip to content

Commit 3ba48f3

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: [RememberMe] add doctrine migration note
2 parents 2135c9e + 73161b8 commit 3ba48f3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

security/remember_me.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,33 @@ so ``DoctrineTokenProvider`` can store the tokens:
247247
`username` varchar(200) NOT NULL
248248
);
249249
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+
doctrine:
260+
dbal:
261+
schema_filter: ~^(?!rememberme_token)~
262+
263+
.. code-block:: xml
264+
265+
<doctrine:dbal schema-filter="~^(?!rememberme_token)~" .../>
266+
267+
.. code-block:: php
268+
269+
$container->loadFromExtension('doctrine', [
270+
'dbal' => [
271+
'schema_filter' => '~^(?!rememberme_token)~',
272+
// ...
273+
],
274+
// ...
275+
]);
276+
250277
Finally, set the ``token_provider`` option of the ``remember_me`` config to the
251278
service you just created:
252279

0 commit comments

Comments
 (0)