title: Symfony2 Import entities from existing database with Doctrine
body: <p>I am a beginner with symfony. I have tried to follow the official documentation <a href="http://symfony.com/doc/current/cookbook/doctrine/reverse_engineering.html" rel="nofollow noreferrer">http://symfony.com/doc/current/cookbook/doctrine/reverse_engineering.html</a> to import a entities from MySQL to a symfony2 project in a Debian testing box. but I didn't succeeded. </p>
  
  <p>Then searching here and there I have found this <a href="https://stackoverflow.com/questions/10371600/generating-a-single-entity-from-existing-database-using-symfony2-and-doctrine">Generating a single Entity from existing database using symfony2 and doctrine</a> here, but I cant make it work, my console:
  "ask Doctrine to introspect the database and generate the corresponding metadata files"</p>
  
  <pre><code>root@khs01wxl001:/var/www/organizer$ php app/console doctrine:mapping:import --force organizerscheduleBundle php
  Importing mapping information from "default" entity manager
    &gt; writing /var/www/organizer/src/organizer/scheduleBundle/Resources/config/doctrine/Dept.orm.php
    &gt; writing /var/www/organizer/src/organizer/scheduleBundle/Resources/config/doctrine/Desg.orm.php
    &gt; writing /var/www/organizer/src/organizer/scheduleBundle/Resources/config/doctrine/Dir.orm.php
    &gt; writing /var/www/organizer/src/organizer/scheduleBundle/Resources/config/doctrine/Schedule.orm.php
    &gt; writing /var/www/organizer/src/organizer/scheduleBundle/Resources/config/doctrine/Username.orm.php
    &gt; writing /var/www/organizer/src/organizer/scheduleBundle/Resources/config/doctrine/Userrole.orm.php
  root@khs01wxl001:/var/www/organizer$
  </code></pre>
  
  <p>So far so good, but now "you can ask Doctrine to build related entity classes by executing the following two commands.  </p>
  
  <pre><code>$ php app/console doctrine:mapping:convert annotation ./src
  $ php app/console doctrine:generate:entities AcmeBlogBundle
  </code></pre>
  
  <p>but when I do it the first one doesn't work for me:</p>
  
  <pre><code>root@khs01wxl001:/var/www/organizer$ php app/console doctrine:mapping:convert annotation ./src/organizer/scheduleBundle/Resources/config/doctrine/
  No Metadata Classes to process.
  root@khs01wxl001:/var/www/organizer$
  </code></pre>
  
  <p>Any suggestion?</p>