title: Class App\Repository\AdRepository does not exist
body: <p>Do you have any idea on the origin of ReflectionException</p>
  <p>for the controller here is the code I wrote</p>
  <pre><code>public function show($slug, AdRepository $repo)
  {
      $ad = $repo-&gt;findOneBySlug($slug);
      return $this-&gt;render('ad/show.html.twig', ['ad' =&gt; $ad]);
  }
  </code></pre>
  <p>Class App\Repository\AdRepository :</p>
  <pre><code>&lt;?php
  
      namespace App\Repository;
      
      use App\Entity\Ad;
      use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
      use Doctrine\Persistence\ManagerRegistry;
      
      /**
       * @method Ad|null find($id, $lockMode = null, $lockVersion = null)
       * @method Ad|null findOneBy(array $criteria, array $orderBy = null)
       * @method Ad[]    findAll()
       * @method Ad[]    findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
       */
      class AdRepository extends ServiceEntityRepository
      {
          public function __construct(ManagerRegistry $registry)
          {
              parent::__construct($registry, Ad::class);
          }
      
      }
  </code></pre>
  <p>thank you</p>