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