title: symfony 5.1 Bundle migration result in No mapping information to process
body: <p>I'm developing a Symfony 5.1 project under DDD, so I'm changing a bit all the default folders.</p>
  <p>I have 2 bundles inside src folder and at the moment I only have entities inside one of them.</p>
  <p>I generated the Entity User and its repository with the command make:user and then moved the files and changed namespaces, routes, configs, etc</p>
  <p>When I run <code>php bin/console make:migration</code> I get an error &quot;No mapping information to process&quot;</p>
  <pre><code>$ run php bin/console make:migration -v
  
  In NoMappingFound.php line 13:
  
    [Doctrine\Migrations\Provider\Exception\NoMappingFound]
    No mapping information to process
  </code></pre>
  <p>The folders are:</p>
  <pre><code>src
   |-- Smartlink
          |-- UserBundle/SmartlinkUserBundle.php
                 |-- Application
                 |-- Domain
                 |     |-- Entity/User.php
                 |     |-- interfaces/UserRepository.php
                 |-- Infrastructure
                       |-- Repository/MysqlUserRepository.php
  </code></pre>
  <p>The configuration is:</p>
  <pre><code>// composer.json
  
  &quot;autoload&quot;: {
      &quot;psr-4&quot;: {
          &quot;UserBundle\\&quot;: &quot;src/Smartlink/UserBundle&quot;,
          &quot;SmartlinkBundle\\&quot;: &quot;src/Smartlink/SmartlinkBundle&quot;,
          &quot;App\\&quot;: &quot;src/&quot;
      }
  },
  </code></pre>
  <p>===============================================</p>
  <pre><code>// config/bundles.php
  
  return [
      ...
      UserBundle\SmartlinkUserBundle::class =&gt; ['all' =&gt; true],
      SmartlinkBundle\SmartlinkSmartlinkBundle::class =&gt; ['all' =&gt; true],
  ];
  </code></pre>
  <p>===============================================</p>
  <pre><code>// config/services.yaml
  
  services:
      _defaults:
          autowire: true      # Automatically injects dependencies in your services.
          autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
  
      UserBundle\:
          resource: '../src/Smartlink/UserBundle/'
          exclude:
              - '../src/Smartlink/UserBundle/Domain/Entity/'
      SmartlinkBundle\:
          resource: '../src/Smartlink/SmartlinkBundle/'
          exclude:
              - '../src/Smartlink/SmartlinkBundle/Domain/Entity/'
      App\:
          resource: '../src/'
          exclude:
              - '../src/DependencyInjection/'
              - '../src/Entity/'
              - '../src/Kernel.php'
              - '../src/Tests/'
              - '../src/Smartlink/'
  </code></pre>
  <p>===============================================</p>
  <pre><code>// config/routes/annotations.yaml
  
  userbundle_controllers:
      resource: ../../src/Smartlink/UserBundle/Infrastructure/Controller
      type: annotation
  
  smartlinkbundle_controllers:
      resource: ../../src/Smartlink/SmartlinkBundle/Infrastructure/Controller
      type: annotation
  
  controllers:
      resource: ../../src/Controller/
      type: annotation
  
  kernel:
      resource: ../../src/Kernel.php
      type: annotation
  </code></pre>
  <p>===============================================</p>
  <pre><code>// config/packages/doctrine.yaml
  
  mappings:
          App:
              is_bundle: false
              type: annotation
              dir: '%kernel.project_dir%/src/Entity'
              prefix: 'App\Entity'
              alias: App
          SmartlinkUserBundle:
              is_bundle: true
              type: annotation
              dir: 'Domain/Entity'
              alias: user_bundle
          SmartlinkSmartlinkBundle:
              is_bundle: true
              type: annotation
              dir: 'Domain/Entity'
              alias: smartlink_bundle
  </code></pre>
  <p>The UserRepository is the same that generated the make:user command except for the namespace, which is changed to <code>namespace UserBundle\Infrastructure\Repository;</code> and the name that is changed to MysqlUserRepository that implements the interface UserRepository</p>
  <p>And the entity User is</p>
  <pre><code>namespace UserBundle\Domain\Entity;
  
  use UserBundle\Infrastructure\Repository\MysqlUserRepository;
  
  /**
   * @ORM\Entity(repositoryClass=MysqlUserRepository::class)
   */
  class User implements UserInterface
  {
      ...
  </code></pre>
  <p>I've been searching and all I have found is about symfony 2 and symfony 4, I tried the same that worked for the people who was asking, but still can't generate the migration of the bundles. what am I missing?</p>
  <p>Edit: I changed some configurations and solved the UserBundle is not found or is not active but the main migration problem remains</p>