Exceptions
Exception
Doctrine\ORM\Mapping\ MappingException
in
vendor/doctrine/orm/src/Mapping/MappingException.php
(line 565)
return new self("Entity '" . $className . "' has a composite identifier but uses an ID generator other than manually assigning (Identity, Sequence). This is not supported.");}public static function invalidTargetEntityClass(string $targetEntity, string $sourceEntity, string $associationName): self{return new self('The target-entity ' . $targetEntity . " cannot be found in '" . $sourceEntity . '#' . $associationName . "'.");}/** @param string[] $cascades */public static function invalidCascadeOption(array $cascades, string $className, string $propertyName): self{
in
vendor/doctrine/orm/src/Mapping/ClassMetadata.php
::
invalidTargetEntityClass
(line 952)
if (! class_exists($mapping->targetEntity)&& ! interface_exists($mapping->targetEntity)&& ! trait_exists($mapping->targetEntity)) {throw MappingException::invalidTargetEntityClass($mapping->targetEntity, $this->name, $mapping->fieldName);}}}/**
in
vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php
->
validateAssociations
(line 271)
// only validate if there is a reflection class instancereturn;}$class->validateIdentifier();$class->validateAssociations();$class->validateLifecycleCallbacks($this->getReflectionService());// verify inheritanceif (! $class->isMappedSuperclass && ! $class->isInheritanceTypeNone()) {if (! $parent) {
in
vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php
->
validateRuntimeMetadata
(line 255)
$this->evm->dispatchEvent(Events::loadClassMetadata, $eventArgs);}$this->findAbstractEntityClassesNotListedInDiscriminatorMap($class);$this->validateRuntimeMetadata($class, $parent);}/*** Validate runtime metadata is correctly defined.*
in
vendor/doctrine/doctrine-bundle/src/Mapping/ClassMetadataFactory.php
->
doLoadMetadata
(line 23)
* @param ClassMetadata<object> $class* @param ClassMetadata<object> $parent*/protected function doLoadMetadata($class, $parent, $rootEntityFound, array $nonSuperclassParents): void{parent::doLoadMetadata($class, $parent, $rootEntityFound, $nonSuperclassParents);$customGeneratorDefinition = $class->customGeneratorDefinition;if (! isset($customGeneratorDefinition['instance'])) {return;
in
vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php
->
doLoadMetadata
(line 318)
}$class = $this->newClassMetadataInstance($className);$this->initializeReflection($class, $reflService);$this->doLoadMetadata($class, $parent, $rootEntityFound, $visited);$this->loadedMetadata[$className] = $class;$parent = $class;
in
vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php
->
loadMetadata
(line 187)
/** @phpstan-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/src/EntityManager.php
->
getMetadataFor
(line 224)
** {@inheritDoc}*/public function getClassMetadata(string $className): Mapping\ClassMetadata{return $this->metadataFactory->getMetadataFor($className);}public function createQuery(string $dql = ''): Query{$query = new Query($this);
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
getClassMetadata
(line 137)
*/public function getEntityMetadata(string $entityFqcn): ClassMetadata{$entityManager = $this->getEntityManager($entityFqcn);/** @var ClassMetadata<TEntity> $entityMetadata */$entityMetadata = $entityManager->getClassMetadata($entityFqcn);if ($entityMetadata->isIdentifierComposite) {throw new \RuntimeException(sprintf('EasyAdmin does not support Doctrine entities with composite primary keys (such as the ones used in the "%s" entity).', $entityFqcn));}
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
getEntityMetadata
(line 163)
}$entityFqcn = $this->getRealClass($entityInstance::class);}$entityMetadata = $this->getEntityMetadata($entityFqcn);$entityDto = new EntityDto($entityFqcn, $entityMetadata, $entityPermission, $entityInstance);if (!$this->authorizationChecker->isGranted(Permission::EA_ACCESS_ENTITY, $entityDto)) {$entityDto->markAsInaccessible();}
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
doCreate
(line 86)
/*** @param class-string $entityFqcn*/public function create(string $entityFqcn, mixed $entityId = null, string|Expression|null $entityPermission = null): EntityDto{return $this->doCreate($entityFqcn, $entityId, $entityPermission);}/*** @param object $entityInstance*/
in
vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php
->
create
(line 271)
// when using pretty URLs, the entity ID is passed as a request attribute (it's part of the route path);// in legacy URLs, the entity ID is passed as a regular query parameter$entityId = $request->attributes->get(EA::ENTITY_ID) ?? $request->query->get(EA::ENTITY_ID);return $this->entityFactory->create($crudDto->getEntityFqcn(), $entityId, $crudDto->getEntityPermission());}}
in
vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php
->
getEntityDto
(line 66)
$user = $this->getUser($this->tokenStorage);// build a first version of CrudDto without actions so we can create AdminContext, which is// needed for action extensions; later, we'll update the CrudDto object with the full action config$crudDto = $this->getCrudDto($this->crudControllers, $dashboardController, $crudController, new ActionConfigDto(), $filters, $crudAction, $pageName);$entityDto = $this->getEntityDto($request, $crudDto);$searchDto = $this->getSearchDto($request, $crudDto);$i18nDto = $this->getI18nDto($request, $dashboardDto, $crudDto, $entityDto);$templateRegistry = $this->getTemplateRegistry($dashboardController, $crudDto);$usePrettyUrls = $this->adminRouteGenerator->usesPrettyUrls();
in
vendor/easycorp/easyadmin-bundle/src/EventListener/AdminRouterSubscriber.php
->
create
(line 132)
if (null === $adminContext = $request->attributes->get(EA::CONTEXT_REQUEST_ATTRIBUTE)) {$crudControllerFqcn = $request->attributes->get(EA::CRUD_CONTROLLER_FQCN);$actionName = $request->attributes->get(EA::CRUD_ACTION);$crudControllerInstance = $this->controllerFactory->getCrudControllerInstance($crudControllerFqcn, $actionName, $request);$adminContext = $this->adminContextFactory->create($request, $dashboardControllerInstance, $crudControllerInstance, $actionName);}$request->attributes->set(EA::CONTEXT_REQUEST_ATTRIBUTE, $adminContext);$this->requestAlreadyProcessedAsPrettyUrl = true;}
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelRequestPrettyUrls
(line 115)
$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);$e = $this->stopwatch->start($this->name, 'event_listener');try {($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 206)
foreach ($listeners as $listener) {if ($stoppable && $event->isPropagationStopped()) {break;}$listener($event, $eventName, $this);}}/*** Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 56)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 126)
try {$this->beforeDispatch($eventName, $event);try {$e = $this->stopwatch->start($eventName, 'section');try {$this->dispatcher->dispatch($event, $eventName);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 159)
*/private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response{// request$event = new RequestEvent($this, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::REQUEST);if ($event->hasResponse()) {return $this->filterResponse($event->getResponse(), $request, $type);}
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 191)
if (!$this->handlingHttpCache) {$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)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/home/manage/htdocs/manage.syberinfo.com.au/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 20:57:32 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "42471c"
},
"request_uri": "https://manage.syberinfo.com.au/_profiler/42471c?panel=exception&type=request",
"method": "GET"
}
|
Stack Trace
|
MappingException
|
|---|
Doctrine\ORM\Mapping\MappingException:
The target-entity App\Entity\ShopifyStore cannot be found in 'App\Entity\StoreInventoryRule#store'.
at vendor/doctrine/orm/src/Mapping/MappingException.php:565
at Doctrine\ORM\Mapping\MappingException::invalidTargetEntityClass()
(vendor/doctrine/orm/src/Mapping/ClassMetadata.php:952)
at Doctrine\ORM\Mapping\ClassMetadata->validateAssociations()
(vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php:271)
at Doctrine\ORM\Mapping\ClassMetadataFactory->validateRuntimeMetadata()
(vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php:255)
at Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata()
(vendor/doctrine/doctrine-bundle/src/Mapping/ClassMetadataFactory.php:23)
at Doctrine\Bundle\DoctrineBundle\Mapping\ClassMetadataFactory->doLoadMetadata()
(vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:318)
at Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata()
(vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php:187)
at Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor()
(vendor/doctrine/orm/src/EntityManager.php:224)
at Doctrine\ORM\EntityManager->getClassMetadata()
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:137)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->getEntityMetadata()
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:163)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->doCreate()
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:86)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->create()
(vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php:271)
at EasyCorp\Bundle\EasyAdminBundle\Factory\AdminContextFactory->getEntityDto()
(vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php:66)
at EasyCorp\Bundle\EasyAdminBundle\Factory\AdminContextFactory->create()
(vendor/easycorp/easyadmin-bundle/src/EventListener/AdminRouterSubscriber.php:132)
at EasyCorp\Bundle\EasyAdminBundle\EventListener\AdminRouterSubscriber->onKernelRequestPrettyUrls()
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
(vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
(vendor/symfony/http-kernel/HttpKernel.php:159)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:191)
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:32)
at require_once('/home/manage/htdocs/manage.syberinfo.com.au/vendor/autoload_runtime.php')
(public/index.php:5)
|