From 15b2d7f8146a8e7d37ff3193105e807a6f6dc52b Mon Sep 17 00:00:00 2001 From: Patrik Patie Gmitter Date: Thu, 9 Feb 2017 09:07:52 +0100 Subject: [PATCH 1/2] Update doctrine.rst --- reference/configuration/doctrine.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/configuration/doctrine.rst b/reference/configuration/doctrine.rst index 6fb38bbba27..2db90e5ccbd 100644 --- a/reference/configuration/doctrine.rst +++ b/reference/configuration/doctrine.rst @@ -23,7 +23,7 @@ Full Default Configuration commented: true # If enabled all tables not prefixed with sf2_ will be ignored by the schema # tool. This is for custom tables which should not be altered automatically. - #schema_filter: ^sf2_ + #schema_filter: ~^sf2_~ connections: # A collection of different named connections (e.g. default, conn2, etc) From 823a13797dfca6b9e422281cf3513d5ff7de05e6 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 9 Feb 2017 12:55:40 +0100 Subject: [PATCH 2/2] Expanded the explanation and updated the example --- reference/configuration/doctrine.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/configuration/doctrine.rst b/reference/configuration/doctrine.rst index 2db90e5ccbd..d6a8f242181 100644 --- a/reference/configuration/doctrine.rst +++ b/reference/configuration/doctrine.rst @@ -21,9 +21,9 @@ Full Default Configuration some_custom_type: class: Acme\HelloBundle\MyCustomType commented: true - # If enabled all tables not prefixed with sf2_ will be ignored by the schema - # tool. This is for custom tables which should not be altered automatically. - #schema_filter: ~^sf2_~ + # If defined, all the tables whose names match this regular expression are ignored + # by the schema tool (in this example, any table name starting with `wp_`) + #schema_filter: "/^wp_/" connections: # A collection of different named connections (e.g. default, conn2, etc)