title: How to migrate an existing database to Doctrine?
body: <p>The steps I am currently attempting are shown below:</p>
  
  <hr>
  
  <p>1 Create XML from database using the existing database in bootstrap.</p>
  
  <pre><code>vendor/bin/doctrine orm:convert-mapping --from-database xml ./config/xml
  </code></pre>
  
  <p>2 Create classes from entities:</p>
  
  <pre><code>vendor/bin/doctrine orm:generate-entities -vvv ./src
  </code></pre>
  
  <p>3 Create the schema (bootstrap is modified to use a new database):</p>
  
  <pre><code>vendor/bin/doctrine orm:schema-tool:create
  </code></pre>
  
  <p>4 Compare the two schemas.</p>
  
  <hr>
  
  <p>Is this the correct process?  Any missing steps?  Should I be using <code>orm:generate-proxies</code> and <code>orm:generate-repositories</code> at this stage?  How would you recommend comparing the schema's?  Where is <code>orm:convert:mapping</code> namespace option used?</p>
  
  <p>Thank you</p>