title: Symfony2 Doctrine2 mapping from existing database (exception)
body: <p>I've already got a MySQL database therefore I wish to create mapping meta data from the <code>existing database</code>.</p>
  
  <pre><code>php app/console doctrine:mapping:convert xml ./src/MainBundle/Resources/config/doctrine/metadata/orm --from-database --force
  </code></pre>
  
  <p>However I got the following exception</p>
  
  <pre><code>[Doctrine\ORM\Mapping\MappingException] 
  Property "customerid" in "Accountcustomer" was already declared, but it must be declared only once
  </code></pre>
  
  <p>I haven't used <code>customerId</code> in any primary / composite key anywhere else in the database however I've used it as a foreign key several times.</p>
  
  <p>However I do not know how having <code>customerId</code> in a composite key or another primary key could affect this.</p>