title: Symfony 4 correct way to configure "AppBundle" for entity Mapping
body: <p>I am following <a href="https://symfony.com/doc/current/doctrine/reverse_engineering.html" rel="nofollow noreferrer">this</a> documentation since I want to auto generate entity depending on the table in my database, and at the XML generation stage I am passing this line <code>php bin/console doctrine:mapping:import --force DoctrineMappingBundle xml</code>. Since I dont have <code>AppBundle</code>, I created my own <code>DoctrineMappingBundle.php</code> in <code>src/Entity/</code></p>
  
  <p>My DoctrineMappingBundle.php looks like this</p>
  
  <pre><code>namespace App\Entity;
  
  use Symfony\Component\HttpKernel\Bundle\Bundle;
  
  class DoctrineMappingBundle extends Bundle
  {
  }
  </code></pre>
  
  <p>It does generate the XML files, however when I run the entity generation command </p>
  
  <p><code>php bin/console doctrine:mapping:convert annotation ./src</code>, it throws up this error</p>
  
  <pre><code> In MappingException.php line 317:
  
   An error occurred in App\Entity\Entity\BlogComment
  </code></pre>
  
  <p>and </p>
  
  <pre><code>In AnnotationDriver.php line 60:
  Class App\Entity\Entity\BlogComment does not exist
  </code></pre>
  
  <p>I am stuck at this point and I dont know why it could not generate the entity classes, and it seems to automatically add an extra <code>Entity</code> in the namespace but in my namespace Entity is only mentioned once in the namespace. I am not sure which configuration is causing this issue.</p>
  
  <p>My <code>src</code> folder structure</p>
  
  <pre><code>src---------/
  |--Controller/  
  |--Entity--/
  |-----DoctinemappingBundle.php 
  |--Migrations/
  |--Repository/ 
  |--Kernel.php
  </code></pre>