title: Symfony generate entities from MSSQL Server [Import]
body: <blockquote>
  <p><strong>Update1:</strong> I've tested this on another project running with mysql - i've deleted one entity and tried to &quot;restore&quot; it by importing the table, I'm getting the same error there as well. So this is not a mssql problem, it must be a config problem. What did I miss to configure?</p>
  <p><strong>Update2:</strong> When not using the filter, it is importing all and no errors shown. What is wrong with the filter?</p>
  </blockquote>
  <p>I am trying to generate entities from an existing mssql database. For that, some information about what I'm using:</p>
  <ul>
  <li>microsoft sql server 2012</li>
  <li>Symfony 2.8 with php7</li>
  <li>Driver in parameters.yml for db connection: sqlsrv (pdo not supported yet by mssql). The driver for sqlsrv (not pdo) can be downloaded <a href="https://github.com/Azure/msphpsql/releases/tag/v4.0.0" rel="nofollow noreferrer">here</a>, I'm using the thread safe version.</li>
  </ul>
  <p>Config.yml:</p>
  <pre><code># Doctrine Configuration
  doctrine:
    dbal:
      driver:   &quot;%database_driver%&quot;
      host:     &quot;%database_host%&quot;
      port:     &quot;%database_port%&quot;
      dbname:   &quot;%database_name%&quot;
      user:     &quot;%database_user%&quot;
      password: &quot;%database_password%&quot;
  
    orm:
      default_entity_manager: default
      auto_generate_proxy_classes: &quot;%kernel.debug%&quot;
      entity_managers:
        default:
          auto_mapping: true
          naming_strategy: doctrine.orm.naming_strategy.underscore
  </code></pre>
  <p>Connecting to the database with the values specified in dbal section is working, I can create a new entity in my code and run schema update command to create the corresponding table. On the other hand, when trying to generate an entity from an existing table - which is named &quot;dbo.tblPlaces&quot; - with the following command:</p>
  <pre><code>php app/console doctrine:mapping:import --force AppBundle xml --filter=&quot;tblPlaces&quot;
  </code></pre>
  <p>(I've also tried &quot;dbo.tblPlaces&quot; within the filter), I keep getting the error:</p>
  <blockquote>
  <p>Database does not have any mapping information.</p>
  </blockquote>
  <p>I've read almost every other post I could find here on stackoverflow and official documentation of symfony regarding the error described above, but wasn't able to find a solution. Why do I keep getting this annoying error message? The table is very small and only consists of the following fields:</p>
  <p><a href="https://i.stack.imgur.com/5CmF7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5CmF7.png" alt="tbl.Places" /></a></p>