Exceptions

Class 'App\Entity\CategorieArticleAide' does not exist

Exception

Doctrine\Persistence\Mapping\ MappingException

  1.     /**
  2.      * @return self
  3.      */
  4.     public static function nonExistingClass(string $className)
  5.     {
  6.         return new self(sprintf("Class '%s' does not exist"$className));
  7.     }
  8.     /**
  9.      * @param class-string $className
  10.      */
  1.      * {@inheritDoc}
  2.      */
  3.     public function getParentClasses(string $class)
  4.     {
  5.         if (! class_exists($class)) {
  6.             throw MappingException::nonExistingClass($class);
  7.         }
  8.         $parents class_parents($class);
  9.         assert($parents !== false);
  1.     protected function getParentClasses(string $name)
  2.     {
  3.         // Collect parent classes, ignoring transient (not-mapped) classes.
  4.         $parentClasses = [];
  5.         foreach (array_reverse($this->getReflectionService()->getParentClasses($name)) as $parentClass) {
  6.             if ($this->getDriver()->isTransient($parentClass)) {
  7.                 continue;
  8.             }
  9.             $parentClasses[] = $parentClass;
  1.             $this->initialize();
  2.         }
  3.         $loaded = [];
  4.         $parentClasses   $this->getParentClasses($name);
  5.         $parentClasses[] = $name;
  6.         // Move down the hierarchy of parent classes, starting from the topmost class
  7.         $parent          null;
  8.         $rootEntityFound false;
  1.                     /** @psalm-var CMTemplate $cached */
  2.                     $this->loadedMetadata[$realClassName] = $cached;
  3.                     $this->wakeupReflection($cached$this->getReflectionService());
  4.                 } else {
  5.                     $loadedMetadata $this->loadMetadata($realClassName);
  6.                     $classNames     array_combine(
  7.                         array_map([$this'getCacheKey'], $loadedMetadata),
  8.                         $loadedMetadata
  9.                     );
  1.      *
  2.      * {@inheritDoc}
  3.      */
  4.     public function getClassMetadata($className)
  5.     {
  6.         return $this->metadataFactory->getMetadataFor($className);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getRepository(EntityManagerInterface $entityManager$entityName): ObjectRepository
  5.     {
  6.         $metadata            $entityManager->getClassMetadata($entityName);
  7.         $repositoryServiceId $metadata->customRepositoryClassName;
  8.         $customRepositoryName $metadata->customRepositoryClassName;
  9.         if ($customRepositoryName !== null) {
  10.             // fetch from the container
  1.                     __METHOD__
  2.                 ));
  3.             }
  4.         }
  5.         $repository $this->repositoryFactory->getRepository($this$entityName);
  6.         if (! $repository instanceof EntityRepository) {
  7.             Deprecation::trigger(
  8.                 'doctrine/orm',
  9.                 'https://github.com/doctrine/orm/pull/9533',
  10.                 'Not returning an instance of %s from %s::getRepository() is deprecated and will cause a TypeError on 3.0.',
  1.     public function getRepository($entityName)
  2.     {
  3.         $this->initializerf9404 && ($this->initializerf9404->__invoke($valueHolder7e207$this'getRepository', array('entityName' => $entityName), $this->initializerf9404) || 1) && $this->valueHolder7e207 $valueHolder7e207;
  4.         return $this->valueHolder7e207->getRepository($entityName);
  5.     }
  6.     public function contains($entity)
  7.     {
  8.         $this->initializerf9404 && ($this->initializerf9404->__invoke($valueHolder7e207$this'contains', array('entity' => $entity), $this->initializerf9404) || 1) && $this->valueHolder7e207 $valueHolder7e207;
EntityManager_9a5be93->getRepository() in src/Controller/AideController.php (line 27)
  1.      */
  2.     public function indexAction($_locale '')
  3.     {
  4.         $em $this->getDoctrine()->getManager();
  5.         
  6.         $categorieAides $em->getRepository(CategorieArticleAide::class)
  7.                         ->findByLangue(
  8.                             array( 
  9.                             'langue' => $_locale
  10.                             )
  11.                         );
in vendor/symfony/http-kernel/HttpKernel.php -> indexAction (line 153)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/assiecloud/public_html/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Stack Trace

MappingException
Doctrine\Persistence\Mapping\MappingException:
Class 'App\Entity\CategorieArticleAide' does not exist

  at vendor/doctrine/persistence/src/Persistence/Mapping/MappingException.php:90
  at Doctrine\Persistence\Mapping\MappingException::nonExistingClass()
     (vendor/doctrine/persistence/src/Persistence/Mapping/RuntimeReflectionService.php:41)
  at Doctrine\Persistence\Mapping\RuntimeReflectionService->getParentClasses()
     (vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:286)
  at Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getParentClasses()
     (vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:320)
  at Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata()
     (vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:210)
  at Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:318)
  at Doctrine\ORM\EntityManager->getClassMetadata()
     (vendor/doctrine/doctrine-bundle/Repository/ContainerRepositoryFactory.php:40)
  at Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory->getRepository()
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:821)
  at Doctrine\ORM\EntityManager->getRepository()
     (var/cache/dev/ContainerFdPfPS8/EntityManager_9a5be93.php:227)
  at ContainerFdPfPS8\EntityManager_9a5be93->getRepository()
     (src/Controller/AideController.php:27)
  at App\Controller\AideController->indexAction()
     (vendor/symfony/http-kernel/HttpKernel.php:153)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:35)
  at require_once('/home/assiecloud/public_html/vendor/autoload_runtime.php')
     (public/index.php:5)