File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -905,21 +905,15 @@ The Doctrine transport can be used to store messages in a database table.
905905
906906 The format is ``doctrine://<connection_name> ``, in case you have multiple connections
907907and want to use one other than the "default". The transport will automatically create
908- a table named ``messenger_messages `` (this is configurable) when the transport is
909- first used. You can disable that with the ``auto_setup `` option and set the table
910- up manually by calling the ``messenger:setup-transports `` command.
908+ a table named ``messenger_messages ``.
911909
912- .. tip ::
913-
914- To avoid tools like Doctrine Migrations from trying to remove this table because
915- it's not part of your normal schema, you can set the ``schema_filter `` option:
910+ .. versionadded :: 5.1
916911
917- .. code-block :: yaml
912+ The ability to automatically generate a migration for the ``messenger_messages ``
913+ table was introduced in Symfony 5.1 and DoctrineBundle 2.1.
918914
919- # config/packages/doctrine.yaml
920- doctrine :
921- dbal :
922- schema_filter : ' ~^(?!messenger_messages)~'
915+ Or, to create the table yourself, set the ``auto_setup `` option to ``false `` and
916+ :ref: `generate a migration <doctrine-creating-the-database-tables-schema >`.
923917
924918The transport has a number of options:
925919
You can’t perform that action at this time.
0 commit comments