title: symfony 3 doctrine schema_filter not working
body: <p>I have created views on my db and the corresponding Entity. All seems to work fine but whenever I run </p>
  
  <blockquote>
    <p>php bin/console doctrine:schema:validate </p>
  </blockquote>
  
  <p>it will tell me that the mapping is fine, but not the db, as follows:</p>
  
  <blockquote>
    <p>[Database] FAIL - The database schema is not in sync with the current mapping file.</p>
  </blockquote>
  
  <p>Looking it up I found that one can configure DBAL to filter out tables from validation.</p>
  
  <p>This is what I attempted on config.yml ( check last line on code below). The intention is to exclude tables whose name start with "view" from validation.</p>
  
  <pre><code>doctrine:
  dbal:
      default_connection: default
      connections:
          default:      
              driver: pdo_mysql
              host: '%database_host%'
              port: '%database_port%'
              dbname: '%database_name%'
              user: '%database_user%'
              password: '%database_password%'
              charset: utf8mb4
              default_table_options:
                  charset: utf8mb4
                  collate: utf8mb4_unicode_ci
              schema_filter: ~^(?!view_)~
  </code></pre>
  
  <p>So, the schema_filter as per this <a href="https://symfony.com/doc/master/bundles/DoctrineBundle/configuration.html" rel="nofollow noreferrer">documentation</a> should filter that out, but it doesn't.</p>
  
  <p>I checked a few other questions, including <a href="https://stackoverflow.com/questions/29603215/symfony2-6-doctrine2-schema-filter-parameter-not-exists">this</a></p>
  
  <p>Any ideas?
  Thanks</p>