Exceptions
Exceptions 3
Doctrine\DBAL\Exception\ InvalidFieldNameException
Show exception properties
Doctrine\DBAL\Exception\InvalidFieldNameException {#4583 -query: Doctrine\DBAL\Query {#4612 -sql: "SELECT t0.id AS id_1, t0.path AS path_2, t0.uploaded_at AS uploaded_at_3, t0.name AS name_4, t0.project_id AS project_id_5 FROM image t0 WHERE t0.project_id = ?" -params: array:1 [ 0 => 1 ] -types: array:1 [ 0 => "integer" ] } }
1557,1569,1586 => new UniqueConstraintViolationException($exception, $query),1054,1166,1611 => new InvalidFieldNameException($exception, $query),1052,1060,1110 => new NonUniqueFieldNameException($exception, $query),1064,1149,
in
vendor/doctrine/dbal/src/Connection.php
->
convert
(line 1460)
private function handleDriverException(Driver\Exception $driverException,?Query $query,): DriverException {$this->exceptionConverter ??= $this->driver->getExceptionConverter();$exception = $this->exceptionConverter->convert($driverException, $query);if ($exception instanceof ConnectionLost) {$this->close();}
in
vendor/doctrine/dbal/src/Connection.php
->
handleDriverException
(line 1396)
Driver\Exception $e,string $sql,array $params = [],array $types = [],): DriverException {return $this->handleDriverException($e, new Query($sql, $params, $types));}/** @internal */final public function convertException(Driver\Exception $e): DriverException{
in
vendor/doctrine/dbal/src/Connection.php
->
convertExceptionDuringQuery
(line 809)
$result = $connection->query($sql);}return new Result($result, $this);} catch (Driver\Exception $e) {throw $this->convertExceptionDuringQuery($e, $sql, $params, $types);}}/*** Executes a caching query.
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 1872)
}$sql = $this->getSelectSQL($criteria, $assoc, null, $limit, $offset);[$params, $types] = $this->expandToManyParameters($parameters);return $this->conn->executeQuery($sql, $params, $types);}/*** {@inheritDoc}*/
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
getOneToManyStatement
(line 1817)
AssociationMapping $assoc,object $sourceEntity,PersistentCollection $collection,): mixed {assert($assoc instanceof OneToManyAssociationMapping);$stmt = $this->getOneToManyStatement($assoc, $sourceEntity);return $this->loadCollectionFromStatement($assoc, $stmt, $collection);}/** Builds criteria and execute SQL statement to fetch the one to many entities from. */
in
vendor/doctrine/orm/src/UnitOfWork.php
->
loadOneToManyCollection
(line 2729)
$assoc = $collection->getMapping();$persister = $this->getEntityPersister($assoc->targetEntity);switch ($assoc->type()) {case ClassMetadata::ONE_TO_MANY:$persister->loadOneToManyCollection($assoc, $collection->getOwner(), $collection);break;case ClassMetadata::MANY_TO_MANY:$persister->loadManyToManyCollection($assoc, $collection->getOwner(), $collection);break;
in
vendor/doctrine/orm/src/PersistentCollection.php
->
loadCollection
(line 636)
if ($this->isDirty) {$newlyAddedDirtyObjects = $this->unwrap()->toArray();}$this->unwrap()->clear();$this->getUnitOfWork()->loadCollection($this);$this->takeSnapshot();if ($newlyAddedDirtyObjects) {$this->restoreNewObjectsInDirtyCollection($newlyAddedDirtyObjects);}
in
vendor/doctrine/orm/src/PersistentCollection.php
->
doInitialize
(line 186)
{if ($this->initialized || ! $this->association) {return;}$this->doInitialize();$this->initialized = true;}/**
in
vendor/doctrine/collections/src/AbstractLazyCollection.php
->
initialize
(line 315)
* @phpstan-return Traversable<TKey,T>*/#[ReturnTypeWillChange]public function getIterator(){$this->initialize();return $this->collection->getIterator();}/**
in
vendor/symfony/serializer/Serializer.php
->
getIterator
(line 169)
if ($data instanceof \Countable && ($context[AbstractObjectNormalizer::PRESERVE_EMPTY_OBJECTS] ?? $this->defaultContext[AbstractObjectNormalizer::PRESERVE_EMPTY_OBJECTS] ?? false) && !\count($data)) {return new \ArrayObject();}$normalized = [];foreach ($data as $key => $val) {$normalized[$key] = $this->normalize($val, $format, $context);}return $normalized;}
in
vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php
->
normalize
(line 226)
throw new LogicException(\sprintf('Cannot normalize attribute "%s" because the injected serializer is not a normalizer.', $attribute));}$childContext = $this->createChildContext($attributeContext, $attribute, $format);$normalizedData = $this->updateData($normalizedData, $attribute, $this->serializer->normalize($attributeValue, $format, $childContext), $class, $format, $attributeContext, $attributesMetadata, $classMetadata);}$preserveEmptyObjects = $context[self::PRESERVE_EMPTY_OBJECTS] ?? $this->defaultContext[self::PRESERVE_EMPTY_OBJECTS] ?? false;if ($preserveEmptyObjects && !$normalizedData) {return new \ArrayObject();
in
vendor/symfony/serializer/Debug/TraceableNormalizer.php
->
normalize
(line 50)
if (!$this->normalizer instanceof NormalizerInterface) {throw new \BadMethodCallException(\sprintf('The "%s()" method cannot be called as nested normalizer doesn\'t implements "%s".', __METHOD__, NormalizerInterface::class));}$startTime = microtime(true);$normalized = $this->normalizer->normalize($data, $format, $context);$time = microtime(true) - $startTime;if ($traceId = ($context[TraceableSerializer::DEBUG_TRACE_ID] ?? null)) {$this->dataCollector->collectNormalization($traceId, $this->normalizer::class, $time, $this->serializerName);}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 152)
public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null{// If a normalizer supports the given data, use itif ($normalizer = $this->getNormalizer($data, $format, $context)) {return $normalizer->normalize($data, $format, $context);}if (null === $data || \is_scalar($data)) {return $data;}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 170)
return new \ArrayObject();}$normalized = [];foreach ($data as $key => $val) {$normalized[$key] = $this->normalize($val, $format, $context);}return $normalized;}
in
vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php
->
normalize
(line 226)
throw new LogicException(\sprintf('Cannot normalize attribute "%s" because the injected serializer is not a normalizer.', $attribute));}$childContext = $this->createChildContext($attributeContext, $attribute, $format);$normalizedData = $this->updateData($normalizedData, $attribute, $this->serializer->normalize($attributeValue, $format, $childContext), $class, $format, $attributeContext, $attributesMetadata, $classMetadata);}$preserveEmptyObjects = $context[self::PRESERVE_EMPTY_OBJECTS] ?? $this->defaultContext[self::PRESERVE_EMPTY_OBJECTS] ?? false;if ($preserveEmptyObjects && !$normalizedData) {return new \ArrayObject();
in
vendor/symfony/serializer/Debug/TraceableNormalizer.php
->
normalize
(line 50)
if (!$this->normalizer instanceof NormalizerInterface) {throw new \BadMethodCallException(\sprintf('The "%s()" method cannot be called as nested normalizer doesn\'t implements "%s".', __METHOD__, NormalizerInterface::class));}$startTime = microtime(true);$normalized = $this->normalizer->normalize($data, $format, $context);$time = microtime(true) - $startTime;if ($traceId = ($context[TraceableSerializer::DEBUG_TRACE_ID] ?? null)) {$this->dataCollector->collectNormalization($traceId, $this->normalizer::class, $time, $this->serializerName);}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 152)
public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null{// If a normalizer supports the given data, use itif ($normalizer = $this->getNormalizer($data, $format, $context)) {return $normalizer->normalize($data, $format, $context);}if (null === $data || \is_scalar($data)) {return $data;}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 131)
if (!$this->supportsEncoding($format, $context)) {throw new UnsupportedFormatException(\sprintf('Serialization for the format "%s" is not supported.', $format));}if ($this->encoder->needsNormalization($format, $context)) {$data = $this->normalize($data, $format, $context);}return $this->encode($data, $format, $context);}
in
vendor/symfony/serializer/Debug/TraceableSerializer.php
->
serialize
(line 44)
public function serialize(mixed $data, string $format, array $context = []): string{$context[self::DEBUG_TRACE_ID] = $traceId = bin2hex(random_bytes(4));$startTime = microtime(true);$result = $this->serializer->serialize($data, $format, $context);$time = microtime(true) - $startTime;$caller = $this->getCaller(__FUNCTION__, SerializerInterface::class);$this->dataCollector->collectSerialize($traceId, $data, $format, $context, $time, $caller, $this->serializerName);
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
serialize
(line 153)
* @param int $status The HTTP status code (200 "OK" by default)*/protected function json(mixed $data, int $status = 200, array $headers = [], array $context = []): JsonResponse{if ($this->container->has('serializer')) {$json = $this->container->get('serializer')->serialize($data, 'json', array_merge(['json_encode_options' => JsonResponse::DEFAULT_ENCODING_OPTIONS,], $context));return new JsonResponse($json, $status, $headers, true);}
}}$userData = $this->userRepository->findUserWithDetails();return $this->json($userData, Response::HTTP_OK, [], ['groups' => 'group-portfolio']);}/*** @throws TransportExceptionInterface* @throws \JsonException
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
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('/var/www/portfolio_dashboard_backend/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']);};
Doctrine\DBAL\Driver\PDO\ Exception
in
vendor/doctrine/dbal/src/Driver/PDO/Exception.php
(line 24)
} else {$code = $exception->getCode();$sqlState = null;}return new self($exception->getMessage(), $sqlState, $code, $exception);}}
in
vendor/doctrine/dbal/src/Driver/PDO/Statement.php
::
new
(line 57)
public function execute(): Result{try {$this->stmt->execute();} catch (PDOException $exception) {throw Exception::new($exception);}return new Result($this->stmt);}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 24)
$this->wrappedStatement->bindValue($param, $value, $type);}public function execute(): Result{return $this->wrappedStatement->execute();}}
in
vendor/doctrine/dbal/src/Logging/Statement.php
->
execute
(line 46)
'sql' => $this->sql,'params' => $this->params,'types' => $this->types,]);return parent::execute();}}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 24)
$this->wrappedStatement->bindValue($param, $value, $type);}public function execute(): Result{return $this->wrappedStatement->execute();}}
in
vendor/symfony/doctrine-bridge/Middleware/Debug/Statement.php
->
execute
(line 58)
$this->stopwatch?->start('doctrine', 'doctrine');$query->start();try {return parent::execute();} finally {$query->stop();$this->stopwatch?->stop('doctrine');}}
in
vendor/doctrine/dbal/src/Connection.php
->
execute
(line 802)
$stmt = $connection->prepare($sql);$this->bindParameters($stmt, $params, $types);$result = $stmt->execute();} else {$result = $connection->query($sql);}return new Result($result, $this);
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 1872)
}$sql = $this->getSelectSQL($criteria, $assoc, null, $limit, $offset);[$params, $types] = $this->expandToManyParameters($parameters);return $this->conn->executeQuery($sql, $params, $types);}/*** {@inheritDoc}*/
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
getOneToManyStatement
(line 1817)
AssociationMapping $assoc,object $sourceEntity,PersistentCollection $collection,): mixed {assert($assoc instanceof OneToManyAssociationMapping);$stmt = $this->getOneToManyStatement($assoc, $sourceEntity);return $this->loadCollectionFromStatement($assoc, $stmt, $collection);}/** Builds criteria and execute SQL statement to fetch the one to many entities from. */
in
vendor/doctrine/orm/src/UnitOfWork.php
->
loadOneToManyCollection
(line 2729)
$assoc = $collection->getMapping();$persister = $this->getEntityPersister($assoc->targetEntity);switch ($assoc->type()) {case ClassMetadata::ONE_TO_MANY:$persister->loadOneToManyCollection($assoc, $collection->getOwner(), $collection);break;case ClassMetadata::MANY_TO_MANY:$persister->loadManyToManyCollection($assoc, $collection->getOwner(), $collection);break;
in
vendor/doctrine/orm/src/PersistentCollection.php
->
loadCollection
(line 636)
if ($this->isDirty) {$newlyAddedDirtyObjects = $this->unwrap()->toArray();}$this->unwrap()->clear();$this->getUnitOfWork()->loadCollection($this);$this->takeSnapshot();if ($newlyAddedDirtyObjects) {$this->restoreNewObjectsInDirtyCollection($newlyAddedDirtyObjects);}
in
vendor/doctrine/orm/src/PersistentCollection.php
->
doInitialize
(line 186)
{if ($this->initialized || ! $this->association) {return;}$this->doInitialize();$this->initialized = true;}/**
in
vendor/doctrine/collections/src/AbstractLazyCollection.php
->
initialize
(line 315)
* @phpstan-return Traversable<TKey,T>*/#[ReturnTypeWillChange]public function getIterator(){$this->initialize();return $this->collection->getIterator();}/**
in
vendor/symfony/serializer/Serializer.php
->
getIterator
(line 169)
if ($data instanceof \Countable && ($context[AbstractObjectNormalizer::PRESERVE_EMPTY_OBJECTS] ?? $this->defaultContext[AbstractObjectNormalizer::PRESERVE_EMPTY_OBJECTS] ?? false) && !\count($data)) {return new \ArrayObject();}$normalized = [];foreach ($data as $key => $val) {$normalized[$key] = $this->normalize($val, $format, $context);}return $normalized;}
in
vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php
->
normalize
(line 226)
throw new LogicException(\sprintf('Cannot normalize attribute "%s" because the injected serializer is not a normalizer.', $attribute));}$childContext = $this->createChildContext($attributeContext, $attribute, $format);$normalizedData = $this->updateData($normalizedData, $attribute, $this->serializer->normalize($attributeValue, $format, $childContext), $class, $format, $attributeContext, $attributesMetadata, $classMetadata);}$preserveEmptyObjects = $context[self::PRESERVE_EMPTY_OBJECTS] ?? $this->defaultContext[self::PRESERVE_EMPTY_OBJECTS] ?? false;if ($preserveEmptyObjects && !$normalizedData) {return new \ArrayObject();
in
vendor/symfony/serializer/Debug/TraceableNormalizer.php
->
normalize
(line 50)
if (!$this->normalizer instanceof NormalizerInterface) {throw new \BadMethodCallException(\sprintf('The "%s()" method cannot be called as nested normalizer doesn\'t implements "%s".', __METHOD__, NormalizerInterface::class));}$startTime = microtime(true);$normalized = $this->normalizer->normalize($data, $format, $context);$time = microtime(true) - $startTime;if ($traceId = ($context[TraceableSerializer::DEBUG_TRACE_ID] ?? null)) {$this->dataCollector->collectNormalization($traceId, $this->normalizer::class, $time, $this->serializerName);}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 152)
public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null{// If a normalizer supports the given data, use itif ($normalizer = $this->getNormalizer($data, $format, $context)) {return $normalizer->normalize($data, $format, $context);}if (null === $data || \is_scalar($data)) {return $data;}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 170)
return new \ArrayObject();}$normalized = [];foreach ($data as $key => $val) {$normalized[$key] = $this->normalize($val, $format, $context);}return $normalized;}
in
vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php
->
normalize
(line 226)
throw new LogicException(\sprintf('Cannot normalize attribute "%s" because the injected serializer is not a normalizer.', $attribute));}$childContext = $this->createChildContext($attributeContext, $attribute, $format);$normalizedData = $this->updateData($normalizedData, $attribute, $this->serializer->normalize($attributeValue, $format, $childContext), $class, $format, $attributeContext, $attributesMetadata, $classMetadata);}$preserveEmptyObjects = $context[self::PRESERVE_EMPTY_OBJECTS] ?? $this->defaultContext[self::PRESERVE_EMPTY_OBJECTS] ?? false;if ($preserveEmptyObjects && !$normalizedData) {return new \ArrayObject();
in
vendor/symfony/serializer/Debug/TraceableNormalizer.php
->
normalize
(line 50)
if (!$this->normalizer instanceof NormalizerInterface) {throw new \BadMethodCallException(\sprintf('The "%s()" method cannot be called as nested normalizer doesn\'t implements "%s".', __METHOD__, NormalizerInterface::class));}$startTime = microtime(true);$normalized = $this->normalizer->normalize($data, $format, $context);$time = microtime(true) - $startTime;if ($traceId = ($context[TraceableSerializer::DEBUG_TRACE_ID] ?? null)) {$this->dataCollector->collectNormalization($traceId, $this->normalizer::class, $time, $this->serializerName);}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 152)
public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null{// If a normalizer supports the given data, use itif ($normalizer = $this->getNormalizer($data, $format, $context)) {return $normalizer->normalize($data, $format, $context);}if (null === $data || \is_scalar($data)) {return $data;}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 131)
if (!$this->supportsEncoding($format, $context)) {throw new UnsupportedFormatException(\sprintf('Serialization for the format "%s" is not supported.', $format));}if ($this->encoder->needsNormalization($format, $context)) {$data = $this->normalize($data, $format, $context);}return $this->encode($data, $format, $context);}
in
vendor/symfony/serializer/Debug/TraceableSerializer.php
->
serialize
(line 44)
public function serialize(mixed $data, string $format, array $context = []): string{$context[self::DEBUG_TRACE_ID] = $traceId = bin2hex(random_bytes(4));$startTime = microtime(true);$result = $this->serializer->serialize($data, $format, $context);$time = microtime(true) - $startTime;$caller = $this->getCaller(__FUNCTION__, SerializerInterface::class);$this->dataCollector->collectSerialize($traceId, $data, $format, $context, $time, $caller, $this->serializerName);
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
serialize
(line 153)
* @param int $status The HTTP status code (200 "OK" by default)*/protected function json(mixed $data, int $status = 200, array $headers = [], array $context = []): JsonResponse{if ($this->container->has('serializer')) {$json = $this->container->get('serializer')->serialize($data, 'json', array_merge(['json_encode_options' => JsonResponse::DEFAULT_ENCODING_OPTIONS,], $context));return new JsonResponse($json, $status, $headers, true);}
}}$userData = $this->userRepository->findUserWithDetails();return $this->json($userData, Response::HTTP_OK, [], ['groups' => 'group-portfolio']);}/*** @throws TransportExceptionInterface* @throws \JsonException
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
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('/var/www/portfolio_dashboard_backend/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']);};
PDOException
in
vendor/doctrine/dbal/src/Driver/PDO/Statement.php
(line 55)
}public function execute(): Result{try {$this->stmt->execute();} catch (PDOException $exception) {throw Exception::new($exception);}return new Result($this->stmt);
in
vendor/doctrine/dbal/src/Driver/PDO/Statement.php
->
execute
(line 55)
}public function execute(): Result{try {$this->stmt->execute();} catch (PDOException $exception) {throw Exception::new($exception);}return new Result($this->stmt);
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 24)
$this->wrappedStatement->bindValue($param, $value, $type);}public function execute(): Result{return $this->wrappedStatement->execute();}}
in
vendor/doctrine/dbal/src/Logging/Statement.php
->
execute
(line 46)
'sql' => $this->sql,'params' => $this->params,'types' => $this->types,]);return parent::execute();}}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 24)
$this->wrappedStatement->bindValue($param, $value, $type);}public function execute(): Result{return $this->wrappedStatement->execute();}}
in
vendor/symfony/doctrine-bridge/Middleware/Debug/Statement.php
->
execute
(line 58)
$this->stopwatch?->start('doctrine', 'doctrine');$query->start();try {return parent::execute();} finally {$query->stop();$this->stopwatch?->stop('doctrine');}}
in
vendor/doctrine/dbal/src/Connection.php
->
execute
(line 802)
$stmt = $connection->prepare($sql);$this->bindParameters($stmt, $params, $types);$result = $stmt->execute();} else {$result = $connection->query($sql);}return new Result($result, $this);
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 1872)
}$sql = $this->getSelectSQL($criteria, $assoc, null, $limit, $offset);[$params, $types] = $this->expandToManyParameters($parameters);return $this->conn->executeQuery($sql, $params, $types);}/*** {@inheritDoc}*/
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
getOneToManyStatement
(line 1817)
AssociationMapping $assoc,object $sourceEntity,PersistentCollection $collection,): mixed {assert($assoc instanceof OneToManyAssociationMapping);$stmt = $this->getOneToManyStatement($assoc, $sourceEntity);return $this->loadCollectionFromStatement($assoc, $stmt, $collection);}/** Builds criteria and execute SQL statement to fetch the one to many entities from. */
in
vendor/doctrine/orm/src/UnitOfWork.php
->
loadOneToManyCollection
(line 2729)
$assoc = $collection->getMapping();$persister = $this->getEntityPersister($assoc->targetEntity);switch ($assoc->type()) {case ClassMetadata::ONE_TO_MANY:$persister->loadOneToManyCollection($assoc, $collection->getOwner(), $collection);break;case ClassMetadata::MANY_TO_MANY:$persister->loadManyToManyCollection($assoc, $collection->getOwner(), $collection);break;
in
vendor/doctrine/orm/src/PersistentCollection.php
->
loadCollection
(line 636)
if ($this->isDirty) {$newlyAddedDirtyObjects = $this->unwrap()->toArray();}$this->unwrap()->clear();$this->getUnitOfWork()->loadCollection($this);$this->takeSnapshot();if ($newlyAddedDirtyObjects) {$this->restoreNewObjectsInDirtyCollection($newlyAddedDirtyObjects);}
in
vendor/doctrine/orm/src/PersistentCollection.php
->
doInitialize
(line 186)
{if ($this->initialized || ! $this->association) {return;}$this->doInitialize();$this->initialized = true;}/**
in
vendor/doctrine/collections/src/AbstractLazyCollection.php
->
initialize
(line 315)
* @phpstan-return Traversable<TKey,T>*/#[ReturnTypeWillChange]public function getIterator(){$this->initialize();return $this->collection->getIterator();}/**
in
vendor/symfony/serializer/Serializer.php
->
getIterator
(line 169)
if ($data instanceof \Countable && ($context[AbstractObjectNormalizer::PRESERVE_EMPTY_OBJECTS] ?? $this->defaultContext[AbstractObjectNormalizer::PRESERVE_EMPTY_OBJECTS] ?? false) && !\count($data)) {return new \ArrayObject();}$normalized = [];foreach ($data as $key => $val) {$normalized[$key] = $this->normalize($val, $format, $context);}return $normalized;}
in
vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php
->
normalize
(line 226)
throw new LogicException(\sprintf('Cannot normalize attribute "%s" because the injected serializer is not a normalizer.', $attribute));}$childContext = $this->createChildContext($attributeContext, $attribute, $format);$normalizedData = $this->updateData($normalizedData, $attribute, $this->serializer->normalize($attributeValue, $format, $childContext), $class, $format, $attributeContext, $attributesMetadata, $classMetadata);}$preserveEmptyObjects = $context[self::PRESERVE_EMPTY_OBJECTS] ?? $this->defaultContext[self::PRESERVE_EMPTY_OBJECTS] ?? false;if ($preserveEmptyObjects && !$normalizedData) {return new \ArrayObject();
in
vendor/symfony/serializer/Debug/TraceableNormalizer.php
->
normalize
(line 50)
if (!$this->normalizer instanceof NormalizerInterface) {throw new \BadMethodCallException(\sprintf('The "%s()" method cannot be called as nested normalizer doesn\'t implements "%s".', __METHOD__, NormalizerInterface::class));}$startTime = microtime(true);$normalized = $this->normalizer->normalize($data, $format, $context);$time = microtime(true) - $startTime;if ($traceId = ($context[TraceableSerializer::DEBUG_TRACE_ID] ?? null)) {$this->dataCollector->collectNormalization($traceId, $this->normalizer::class, $time, $this->serializerName);}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 152)
public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null{// If a normalizer supports the given data, use itif ($normalizer = $this->getNormalizer($data, $format, $context)) {return $normalizer->normalize($data, $format, $context);}if (null === $data || \is_scalar($data)) {return $data;}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 170)
return new \ArrayObject();}$normalized = [];foreach ($data as $key => $val) {$normalized[$key] = $this->normalize($val, $format, $context);}return $normalized;}
in
vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php
->
normalize
(line 226)
throw new LogicException(\sprintf('Cannot normalize attribute "%s" because the injected serializer is not a normalizer.', $attribute));}$childContext = $this->createChildContext($attributeContext, $attribute, $format);$normalizedData = $this->updateData($normalizedData, $attribute, $this->serializer->normalize($attributeValue, $format, $childContext), $class, $format, $attributeContext, $attributesMetadata, $classMetadata);}$preserveEmptyObjects = $context[self::PRESERVE_EMPTY_OBJECTS] ?? $this->defaultContext[self::PRESERVE_EMPTY_OBJECTS] ?? false;if ($preserveEmptyObjects && !$normalizedData) {return new \ArrayObject();
in
vendor/symfony/serializer/Debug/TraceableNormalizer.php
->
normalize
(line 50)
if (!$this->normalizer instanceof NormalizerInterface) {throw new \BadMethodCallException(\sprintf('The "%s()" method cannot be called as nested normalizer doesn\'t implements "%s".', __METHOD__, NormalizerInterface::class));}$startTime = microtime(true);$normalized = $this->normalizer->normalize($data, $format, $context);$time = microtime(true) - $startTime;if ($traceId = ($context[TraceableSerializer::DEBUG_TRACE_ID] ?? null)) {$this->dataCollector->collectNormalization($traceId, $this->normalizer::class, $time, $this->serializerName);}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 152)
public function normalize(mixed $data, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null{// If a normalizer supports the given data, use itif ($normalizer = $this->getNormalizer($data, $format, $context)) {return $normalizer->normalize($data, $format, $context);}if (null === $data || \is_scalar($data)) {return $data;}
in
vendor/symfony/serializer/Serializer.php
->
normalize
(line 131)
if (!$this->supportsEncoding($format, $context)) {throw new UnsupportedFormatException(\sprintf('Serialization for the format "%s" is not supported.', $format));}if ($this->encoder->needsNormalization($format, $context)) {$data = $this->normalize($data, $format, $context);}return $this->encode($data, $format, $context);}
in
vendor/symfony/serializer/Debug/TraceableSerializer.php
->
serialize
(line 44)
public function serialize(mixed $data, string $format, array $context = []): string{$context[self::DEBUG_TRACE_ID] = $traceId = bin2hex(random_bytes(4));$startTime = microtime(true);$result = $this->serializer->serialize($data, $format, $context);$time = microtime(true) - $startTime;$caller = $this->getCaller(__FUNCTION__, SerializerInterface::class);$this->dataCollector->collectSerialize($traceId, $data, $format, $context, $time, $caller, $this->serializerName);
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
serialize
(line 153)
* @param int $status The HTTP status code (200 "OK" by default)*/protected function json(mixed $data, int $status = 200, array $headers = [], array $context = []): JsonResponse{if ($this->container->has('serializer')) {$json = $this->container->get('serializer')->serialize($data, 'json', array_merge(['json_encode_options' => JsonResponse::DEFAULT_ENCODING_OPTIONS,], $context));return new JsonResponse($json, $status, $headers, true);}
}}$userData = $this->userRepository->findUserWithDetails();return $this->json($userData, Response::HTTP_OK, [], ['groups' => 'group-portfolio']);}/*** @throws TransportExceptionInterface* @throws \JsonException
in
vendor/symfony/http-kernel/HttpKernel.php
->
index
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
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('/var/www/portfolio_dashboard_backend/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 02:47:02 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "latest"
},
"request_uri": "https://backend.portfolio.amarsyll.pro/_profiler/latest?ip=184.105.139.68&type=request",
"method": "GET"
}
|
Stack Traces 3
|
[3/3]
InvalidFieldNameException
|
|---|
Doctrine\DBAL\Exception\InvalidFieldNameException:
An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.uploaded_at' in 'field list'
at vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:63
at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()
(vendor/doctrine/dbal/src/Connection.php:1460)
at Doctrine\DBAL\Connection->handleDriverException()
(vendor/doctrine/dbal/src/Connection.php:1396)
at Doctrine\DBAL\Connection->convertExceptionDuringQuery()
(vendor/doctrine/dbal/src/Connection.php:809)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:1872)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getOneToManyStatement()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:1817)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadOneToManyCollection()
(vendor/doctrine/orm/src/UnitOfWork.php:2729)
at Doctrine\ORM\UnitOfWork->loadCollection()
(vendor/doctrine/orm/src/PersistentCollection.php:636)
at Doctrine\ORM\PersistentCollection->doInitialize()
(vendor/doctrine/orm/src/PersistentCollection.php:186)
at Doctrine\ORM\PersistentCollection->initialize()
(vendor/doctrine/collections/src/AbstractLazyCollection.php:315)
at Doctrine\Common\Collections\AbstractLazyCollection->getIterator()
(vendor/symfony/serializer/Serializer.php:169)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php:226)
at Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer->normalize()
(vendor/symfony/serializer/Debug/TraceableNormalizer.php:50)
at Symfony\Component\Serializer\Debug\TraceableNormalizer->normalize()
(vendor/symfony/serializer/Serializer.php:152)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Serializer.php:170)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php:226)
at Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer->normalize()
(vendor/symfony/serializer/Debug/TraceableNormalizer.php:50)
at Symfony\Component\Serializer\Debug\TraceableNormalizer->normalize()
(vendor/symfony/serializer/Serializer.php:152)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Serializer.php:131)
at Symfony\Component\Serializer\Serializer->serialize()
(vendor/symfony/serializer/Debug/TraceableSerializer.php:44)
at Symfony\Component\Serializer\Debug\TraceableSerializer->serialize()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:153)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->json()
(src/Controller/PortfolioController.php:129)
at App\Controller\PortfolioController->index()
(vendor/symfony/http-kernel/HttpKernel.php:183)
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('/var/www/portfolio_dashboard_backend/vendor/autoload_runtime.php')
(public/index.php:5)
|
|
[2/3]
Exception
|
|---|
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.uploaded_at' in 'field list'
at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:24
at Doctrine\DBAL\Driver\PDO\Exception::new()
(vendor/doctrine/dbal/src/Driver/PDO/Statement.php:57)
at Doctrine\DBAL\Driver\PDO\Statement->execute()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:24)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
(vendor/doctrine/dbal/src/Logging/Statement.php:46)
at Doctrine\DBAL\Logging\Statement->execute()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:24)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
(vendor/symfony/doctrine-bridge/Middleware/Debug/Statement.php:58)
at Symfony\Bridge\Doctrine\Middleware\Debug\Statement->execute()
(vendor/doctrine/dbal/src/Connection.php:802)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:1872)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getOneToManyStatement()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:1817)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadOneToManyCollection()
(vendor/doctrine/orm/src/UnitOfWork.php:2729)
at Doctrine\ORM\UnitOfWork->loadCollection()
(vendor/doctrine/orm/src/PersistentCollection.php:636)
at Doctrine\ORM\PersistentCollection->doInitialize()
(vendor/doctrine/orm/src/PersistentCollection.php:186)
at Doctrine\ORM\PersistentCollection->initialize()
(vendor/doctrine/collections/src/AbstractLazyCollection.php:315)
at Doctrine\Common\Collections\AbstractLazyCollection->getIterator()
(vendor/symfony/serializer/Serializer.php:169)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php:226)
at Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer->normalize()
(vendor/symfony/serializer/Debug/TraceableNormalizer.php:50)
at Symfony\Component\Serializer\Debug\TraceableNormalizer->normalize()
(vendor/symfony/serializer/Serializer.php:152)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Serializer.php:170)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php:226)
at Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer->normalize()
(vendor/symfony/serializer/Debug/TraceableNormalizer.php:50)
at Symfony\Component\Serializer\Debug\TraceableNormalizer->normalize()
(vendor/symfony/serializer/Serializer.php:152)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Serializer.php:131)
at Symfony\Component\Serializer\Serializer->serialize()
(vendor/symfony/serializer/Debug/TraceableSerializer.php:44)
at Symfony\Component\Serializer\Debug\TraceableSerializer->serialize()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:153)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->json()
(src/Controller/PortfolioController.php:129)
at App\Controller\PortfolioController->index()
(vendor/symfony/http-kernel/HttpKernel.php:183)
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('/var/www/portfolio_dashboard_backend/vendor/autoload_runtime.php')
(public/index.php:5)
|
|
[1/3]
PDOException
|
|---|
PDOException:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.uploaded_at' in 'field list'
at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:55
at PDOStatement->execute()
(vendor/doctrine/dbal/src/Driver/PDO/Statement.php:55)
at Doctrine\DBAL\Driver\PDO\Statement->execute()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:24)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
(vendor/doctrine/dbal/src/Logging/Statement.php:46)
at Doctrine\DBAL\Logging\Statement->execute()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:24)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
(vendor/symfony/doctrine-bridge/Middleware/Debug/Statement.php:58)
at Symfony\Bridge\Doctrine\Middleware\Debug\Statement->execute()
(vendor/doctrine/dbal/src/Connection.php:802)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:1872)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->getOneToManyStatement()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:1817)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadOneToManyCollection()
(vendor/doctrine/orm/src/UnitOfWork.php:2729)
at Doctrine\ORM\UnitOfWork->loadCollection()
(vendor/doctrine/orm/src/PersistentCollection.php:636)
at Doctrine\ORM\PersistentCollection->doInitialize()
(vendor/doctrine/orm/src/PersistentCollection.php:186)
at Doctrine\ORM\PersistentCollection->initialize()
(vendor/doctrine/collections/src/AbstractLazyCollection.php:315)
at Doctrine\Common\Collections\AbstractLazyCollection->getIterator()
(vendor/symfony/serializer/Serializer.php:169)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php:226)
at Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer->normalize()
(vendor/symfony/serializer/Debug/TraceableNormalizer.php:50)
at Symfony\Component\Serializer\Debug\TraceableNormalizer->normalize()
(vendor/symfony/serializer/Serializer.php:152)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Serializer.php:170)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php:226)
at Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer->normalize()
(vendor/symfony/serializer/Debug/TraceableNormalizer.php:50)
at Symfony\Component\Serializer\Debug\TraceableNormalizer->normalize()
(vendor/symfony/serializer/Serializer.php:152)
at Symfony\Component\Serializer\Serializer->normalize()
(vendor/symfony/serializer/Serializer.php:131)
at Symfony\Component\Serializer\Serializer->serialize()
(vendor/symfony/serializer/Debug/TraceableSerializer.php:44)
at Symfony\Component\Serializer\Debug\TraceableSerializer->serialize()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:153)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->json()
(src/Controller/PortfolioController.php:129)
at App\Controller\PortfolioController->index()
(vendor/symfony/http-kernel/HttpKernel.php:183)
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('/var/www/portfolio_dashboard_backend/vendor/autoload_runtime.php')
(public/index.php:5)
|