Exceptions
Exceptions 3
Doctrine\DBAL\Exception\ InvalidFieldNameException
Show exception properties
Doctrine\DBAL\Exception\InvalidFieldNameException {#2494 -query: Doctrine\DBAL\Query {#2495 -sql: "SELECT t0.ID_setup AS ID_setup_1, t0.infoEmail AS infoEmail_2, t0.herria AS herria_3, t0.eskolaIzena AS eskolaIzena_4, t0.nombreEscuela AS nombreEscuela_5, t0.domeinua AS domeinua_6, t0.headerImg AS headerImg_7, t0.logoUdalaImg AS logoUdalaImg_8, t0.logoExtraImg AS logoExtraImg_9, t0.logoEskolaImg AS logoEskolaImg_10, t0.infoIzena AS infoIzena_11, t0.infoLOPD AS infoLOPD_12, t0.lopdOrriaMatrikulaOrrian AS lopdOrriaMatrikulaOrrian_13, t0.matrikulaznb AS matrikulaznb_14, t0.bajaznb AS bajaznb_15, t0.zenbatebaluaketa AS zenbatebaluaketa_16, t0.notetanHurrengoOrdutegiak AS notetanHurrengoOrdutegiak_17, t0.modulogainditzekoazterketa AS modulogainditzekoazterketa_18, t0.multisede AS multisede_19, t0.multibilera AS multibilera_20, t0.remesaksortu AS remesaksortu_21, t0.urtekoakuota AS urtekoakuota_22, t0.zenbatkuota AS zenbatkuota_23, t0.sepaEmpresaIzena AS sepaEmpresaIzena_24, t0.sepaEmpresaIban AS sepaEmpresaIban_25, t0.sepaEmpresaBic AS sepaEmpresaBic_26, t0.sepaEmpresaIdentifikatzailea AS sepaEmpresaIdentifikatzailea_27, t0.sepaAktibatuta AS sepaAktibatuta_28, t0.eskeiniautomatrikula AS eskeiniautomatrikula_29, t0.bigarrenaukeraerakutsi AS bigarrenaukeraerakutsi_30, t0.berrientzatmatrikulaepeberezia AS berrientzatmatrikulaepeberezia_31, t0.matrikulaeskubideaordaindu AS matrikulaeskubideaordaindu_32, t0.lehenengoikasgaiaprezioberezia AS lehenengoikasgaiaprezioberezia_33, t0.kuotaproporzionala AS kuotaproporzionala_34, t0.kuotarikEzOrdaindu AS kuotarikEzOrdaindu_35, t0.bajanDesaktibazioData AS bajanDesaktibazioData_36, t0.bajaOnartuAutomatikoki AS bajaOnartuAutomatikoki_37, t0.eskeintzaMuga AS eskeintzaMuga_38, t0.matrikulaBerritzeAutomatikoa AS matrikulaBerritzeAutomatikoa_39, t0.matrikulaGehituAutomatikoki AS matrikulaGehituAutomatikoki_40, t0.notaknibelekakolorez AS notaknibelekakolorez_41, t0.espezialitateanKurtsorikEz AS espezialitateanKurtsorikEz_42, t0.familiaUgariaDeskontua AS familiaUgariaDeskontua_43, t0.bigarrenMusikatresnaDeskontua AS bigarrenMusikatresnaDeskontua_44, t0.dirulaguntzak AS dirulaguntzak_45, t0.onartuIkasleaEmailPertsonala AS onartuIkasleaEmailPertsonala_46, t0.onartuIrakasleaEmailPertsonala AS onartuIrakasleaEmailPertsonala_47, t0.onartuLangileaEmailPertsonala AS onartuLangileaEmailPertsonala_48, t0.irakasleGoogleUO AS irakasleGoogleUO_49, t0.ikasleGoogleUO AS ikasleGoogleUO_50, t0.onartualumni AS onartualumni_51, t0.whatsappbidezinformazioa AS whatsappbidezinformazioa_52, t0.gurasoeninformaziorakohizkuntza AS gurasoeninformaziorakohizkuntza_53, t0.dokumentoenPolitika AS dokumentoenPolitika_54, t0.lanaldiRegistroa AS lanaldiRegistroa_55, t0.lanaldiRegistroaReminder AS lanaldiRegistroaReminder_56, t0.apiVocaltraining AS apiVocaltraining_57, t0.apiArtxiboa AS apiArtxiboa_58, t0.asistentziaBakarrikX AS asistentziaBakarrikX_59, t0.faltaJustifikatuak AS faltaJustifikatuak_60, t0.komunikazioakIlaraBitartez AS komunikazioakIlaraBitartez_61, t0.akademikoaEgoeraAldatuJakinarazi AS akademikoaEgoeraAldatuJakinarazi_62, t0.ordutegiAldaketaJakinarazi AS ordutegiAldaketaJakinarazi_63, t0.faltakGurasoeiJakinarazi AS faltakGurasoeiJakinarazi_64, t0.faltajustifituakIrakasleeiJakinarazi AS faltajustifituakIrakasleeiJakinarazi_65, t0.delayJakinarazpenakBidaltzeko AS delayJakinarazpenakBidaltzeko_66, t0.autosortuEskeintzaIkasturteBerria AS autosortuEskeintzaIkasturteBerria_67, t0.autosortuKuotaMatrikulaIkasturteBerria AS autosortuKuotaMatrikulaIkasturteBerria_68, t0.autosortuEgutegiAukeraIkasturteBerria AS autosortuEgutegiAukeraIkasturteBerria_69, t0.ikasturteaAkademikoa AS ikasturteaAkademikoa_70, t0.ikasturteaMatrikulazioa AS ikasturteaMatrikulazioa_71 FROM appsetup t0 WHERE t0.ikasturteaAkademikoa = ?" -params: array:1 [ 0 => 2026 ] -types: array:1 [ 0 => "integer" ] } }
return new UniqueConstraintViolationException($exception, $query);case 1054:case 1166:case 1611:return new InvalidFieldNameException($exception, $query);case 1052:case 1060:case 1110:return new NonUniqueFieldNameException($exception, $query);
in
vendor/doctrine/dbal/src/Connection.php
->
convert
(line 1976)
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 1918)
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 1111)
$result = $connection->query($sql);}return new Result($result, $this);} catch (Driver\Exception $e) {throw $this->convertExceptionDuringQuery($e, $sql, $params, $types);} finally {if ($logger !== null) {$logger->stopQuery();}}
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 738)
): object|null {$this->switchPersisterContext(null, $limit);$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);[$params, $types] = $this->expandParameters($criteria);$stmt = $this->conn->executeQuery($sql, $params, $types);if ($entity !== null) {$hints[Query::HINT_REFRESH] = true;$hints[Query::HINT_REFRESH_ENTITY] = $entity;}
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
load
(line 837)
$computedIdentifier[$targetClass->getFieldForColumn($targetKeyColumn)] =$sourceClass->propertyAccessors[$sourceClass->fieldNames[$sourceKeyColumn]]->getValue($sourceEntity);}}$targetEntity = $this->load($computedIdentifier, null, $assoc);if ($targetEntity !== null) {$targetClass->setFieldValue($targetEntity, $assoc->mappedBy, $sourceEntity);}
in
vendor/doctrine/orm/src/UnitOfWork.php
->
loadOneToOneEntity
(line 2458)
continue 2;}// Inverse side of x-to-one can never be lazy$class->propertyAccessors[$field]->setValue($entity, $this->getEntityPersister($assoc->targetEntity)->loadOneToOneEntity($assoc, $entity));continue 2;}// use the entity association
in
vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php
->
createEntity
(line 268)
$this->registerManaged($this->metadataCache[$className], $this->hints[Query::HINT_REFRESH_ENTITY], $data);}$this->hints['fetchAlias'] = $dqlAlias;return $this->uow->createEntity($className, $data, $this->hints);}/*** @param class-string $className* @phpstan-param array<string, mixed> $data
in
vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php
->
getEntity
(line 495)
continue;}// check for existing result from the iterations beforeif (! isset($this->identifierMap[$dqlAlias][$id[$dqlAlias]])) {$element = $this->getEntity($data, $dqlAlias);if ($this->resultSetMapping()->isMixed) {$element = [$entityKey => $element];}
in
vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php
->
hydrateRowData
(line 147)
protected function hydrateAllData(): array{$result = [];while ($row = $this->statement()->fetchAssociative()) {$this->hydrateRowData($row, $result);}// Take snapshots from all newly initialized collectionsforeach ($this->initializedCollections as $coll) {$coll->takeSnapshot();
in
vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php
->
hydrateAllData
(line 176)
$this->em->getEventManager()->addEventListener([Events::onClear], $this);$this->prepare();try {$result = $this->hydrateAllData();} finally {$this->cleanup();}return $result;
in
vendor/doctrine/orm/src/AbstractQuery.php
->
hydrateAll
(line 943)
$rsm = $this->getResultSetMapping();if ($rsm === null) {throw new LogicException('Uninitialized result set mapping.');}$data = $this->em->newHydrator($this->hydrationMode)->hydrateAll($stmt, $rsm, $this->hints);$setCacheEntry($data);return $data;}
in
vendor/doctrine/orm/src/AbstractQuery.php
->
executeIgnoreQueryCache
(line 886)
): mixed {if ($this->cacheable && $this->isCacheEnabled()) {return $this->executeUsingQueryCache($parameters, $hydrationMode);}return $this->executeIgnoreQueryCache($parameters, $hydrationMode);}/*** Execute query ignoring second level cache.*
in
vendor/doctrine/orm/src/AbstractQuery.php
->
execute
(line 688)
** @phpstan-param string|AbstractQuery::HYDRATE_* $hydrationMode*/public function getResult(string|int $hydrationMode = self::HYDRATE_OBJECT): mixed{return $this->execute(null, $hydrationMode);}/*** Gets the array of results for the query.*
}public function guztiakOrdenean() {return $this->getEntityManager()->createQuery('SELECT d FROM App\Entity\Ikasturtea d ORDER BY d.ikasturtea DESC')->getResult();}public function pasaturakoakOrdenean() {$appsetup = $this->getEntityManager()->createQuery('SELECT a FROM App\Entity\AppSetup a WHERE a.id = 1')
#[Route('/{_locale}/', name: 'home')]public function homeAction(Request $request, \Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager): Response{//IKASTURTEAK$ikasturteas = $this->getRepository(Ikasturtea::class)->guztiakOrdenean();if (count($ikasturteas) == 0) {$idIkasturtea = date("m") > 6 ? date("Y"): date("Y")-1;$ikasturtea = new Ikasturtea();$ikasturtea->setIkasturtea($idIkasturtea."-".((int)$idIkasturtea+1));$ikasturtea->setId($idIkasturtea);
in
vendor/symfony/http-kernel/HttpKernel.php
->
homeAction
(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 193)
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());
<?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 132)
}try {$this->stmt->execute($params);} catch (PDOException $exception) {throw Exception::new($exception);}return new Result($this->stmt);}}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 69)
/*** {@inheritDoc}*/public function execute($params = null): Result{return $this->wrappedStatement->execute($params);}}
in
vendor/doctrine/dbal/src/Logging/Statement.php
->
execute
(line 98)
'sql' => $this->sql,'params' => $params ?? $this->params,'types' => $this->types,]);return parent::execute($params);}}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 69)
/*** {@inheritDoc}*/public function execute($params = null): Result{return $this->wrappedStatement->execute($params);}}
in
vendor/symfony/doctrine-bridge/Middleware/Debug/DBAL3/Statement.php
->
execute
(line 70)
$this->stopwatch?->start('doctrine', 'doctrine');$query->start();try {return parent::execute($params);} finally {$query->stop();$this->stopwatch?->stop('doctrine');}}
in
vendor/doctrine/dbal/src/Connection.php
->
execute
(line 1104)
$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 738)
): object|null {$this->switchPersisterContext(null, $limit);$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);[$params, $types] = $this->expandParameters($criteria);$stmt = $this->conn->executeQuery($sql, $params, $types);if ($entity !== null) {$hints[Query::HINT_REFRESH] = true;$hints[Query::HINT_REFRESH_ENTITY] = $entity;}
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
load
(line 837)
$computedIdentifier[$targetClass->getFieldForColumn($targetKeyColumn)] =$sourceClass->propertyAccessors[$sourceClass->fieldNames[$sourceKeyColumn]]->getValue($sourceEntity);}}$targetEntity = $this->load($computedIdentifier, null, $assoc);if ($targetEntity !== null) {$targetClass->setFieldValue($targetEntity, $assoc->mappedBy, $sourceEntity);}
in
vendor/doctrine/orm/src/UnitOfWork.php
->
loadOneToOneEntity
(line 2458)
continue 2;}// Inverse side of x-to-one can never be lazy$class->propertyAccessors[$field]->setValue($entity, $this->getEntityPersister($assoc->targetEntity)->loadOneToOneEntity($assoc, $entity));continue 2;}// use the entity association
in
vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php
->
createEntity
(line 268)
$this->registerManaged($this->metadataCache[$className], $this->hints[Query::HINT_REFRESH_ENTITY], $data);}$this->hints['fetchAlias'] = $dqlAlias;return $this->uow->createEntity($className, $data, $this->hints);}/*** @param class-string $className* @phpstan-param array<string, mixed> $data
in
vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php
->
getEntity
(line 495)
continue;}// check for existing result from the iterations beforeif (! isset($this->identifierMap[$dqlAlias][$id[$dqlAlias]])) {$element = $this->getEntity($data, $dqlAlias);if ($this->resultSetMapping()->isMixed) {$element = [$entityKey => $element];}
in
vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php
->
hydrateRowData
(line 147)
protected function hydrateAllData(): array{$result = [];while ($row = $this->statement()->fetchAssociative()) {$this->hydrateRowData($row, $result);}// Take snapshots from all newly initialized collectionsforeach ($this->initializedCollections as $coll) {$coll->takeSnapshot();
in
vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php
->
hydrateAllData
(line 176)
$this->em->getEventManager()->addEventListener([Events::onClear], $this);$this->prepare();try {$result = $this->hydrateAllData();} finally {$this->cleanup();}return $result;
in
vendor/doctrine/orm/src/AbstractQuery.php
->
hydrateAll
(line 943)
$rsm = $this->getResultSetMapping();if ($rsm === null) {throw new LogicException('Uninitialized result set mapping.');}$data = $this->em->newHydrator($this->hydrationMode)->hydrateAll($stmt, $rsm, $this->hints);$setCacheEntry($data);return $data;}
in
vendor/doctrine/orm/src/AbstractQuery.php
->
executeIgnoreQueryCache
(line 886)
): mixed {if ($this->cacheable && $this->isCacheEnabled()) {return $this->executeUsingQueryCache($parameters, $hydrationMode);}return $this->executeIgnoreQueryCache($parameters, $hydrationMode);}/*** Execute query ignoring second level cache.*
in
vendor/doctrine/orm/src/AbstractQuery.php
->
execute
(line 688)
** @phpstan-param string|AbstractQuery::HYDRATE_* $hydrationMode*/public function getResult(string|int $hydrationMode = self::HYDRATE_OBJECT): mixed{return $this->execute(null, $hydrationMode);}/*** Gets the array of results for the query.*
}public function guztiakOrdenean() {return $this->getEntityManager()->createQuery('SELECT d FROM App\Entity\Ikasturtea d ORDER BY d.ikasturtea DESC')->getResult();}public function pasaturakoakOrdenean() {$appsetup = $this->getEntityManager()->createQuery('SELECT a FROM App\Entity\AppSetup a WHERE a.id = 1')
#[Route('/{_locale}/', name: 'home')]public function homeAction(Request $request, \Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager): Response{//IKASTURTEAK$ikasturteas = $this->getRepository(Ikasturtea::class)->guztiakOrdenean();if (count($ikasturteas) == 0) {$idIkasturtea = date("m") > 6 ? date("Y"): date("Y")-1;$ikasturtea = new Ikasturtea();$ikasturtea->setIkasturtea($idIkasturtea."-".((int)$idIkasturtea+1));$ikasturtea->setId($idIkasturtea);
in
vendor/symfony/http-kernel/HttpKernel.php
->
homeAction
(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 193)
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());
<?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 130)
. ' Statement::bindParam() or Statement::bindValue() instead.',);}try {$this->stmt->execute($params);} catch (PDOException $exception) {throw Exception::new($exception);}return new Result($this->stmt);
in
vendor/doctrine/dbal/src/Driver/PDO/Statement.php
->
execute
(line 130)
. ' Statement::bindParam() or Statement::bindValue() instead.',);}try {$this->stmt->execute($params);} catch (PDOException $exception) {throw Exception::new($exception);}return new Result($this->stmt);
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 69)
/*** {@inheritDoc}*/public function execute($params = null): Result{return $this->wrappedStatement->execute($params);}}
in
vendor/doctrine/dbal/src/Logging/Statement.php
->
execute
(line 98)
'sql' => $this->sql,'params' => $params ?? $this->params,'types' => $this->types,]);return parent::execute($params);}}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 69)
/*** {@inheritDoc}*/public function execute($params = null): Result{return $this->wrappedStatement->execute($params);}}
in
vendor/symfony/doctrine-bridge/Middleware/Debug/DBAL3/Statement.php
->
execute
(line 70)
$this->stopwatch?->start('doctrine', 'doctrine');$query->start();try {return parent::execute($params);} finally {$query->stop();$this->stopwatch?->stop('doctrine');}}
in
vendor/doctrine/dbal/src/Connection.php
->
execute
(line 1104)
$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 738)
): object|null {$this->switchPersisterContext(null, $limit);$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);[$params, $types] = $this->expandParameters($criteria);$stmt = $this->conn->executeQuery($sql, $params, $types);if ($entity !== null) {$hints[Query::HINT_REFRESH] = true;$hints[Query::HINT_REFRESH_ENTITY] = $entity;}
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
load
(line 837)
$computedIdentifier[$targetClass->getFieldForColumn($targetKeyColumn)] =$sourceClass->propertyAccessors[$sourceClass->fieldNames[$sourceKeyColumn]]->getValue($sourceEntity);}}$targetEntity = $this->load($computedIdentifier, null, $assoc);if ($targetEntity !== null) {$targetClass->setFieldValue($targetEntity, $assoc->mappedBy, $sourceEntity);}
in
vendor/doctrine/orm/src/UnitOfWork.php
->
loadOneToOneEntity
(line 2458)
continue 2;}// Inverse side of x-to-one can never be lazy$class->propertyAccessors[$field]->setValue($entity, $this->getEntityPersister($assoc->targetEntity)->loadOneToOneEntity($assoc, $entity));continue 2;}// use the entity association
in
vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php
->
createEntity
(line 268)
$this->registerManaged($this->metadataCache[$className], $this->hints[Query::HINT_REFRESH_ENTITY], $data);}$this->hints['fetchAlias'] = $dqlAlias;return $this->uow->createEntity($className, $data, $this->hints);}/*** @param class-string $className* @phpstan-param array<string, mixed> $data
in
vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php
->
getEntity
(line 495)
continue;}// check for existing result from the iterations beforeif (! isset($this->identifierMap[$dqlAlias][$id[$dqlAlias]])) {$element = $this->getEntity($data, $dqlAlias);if ($this->resultSetMapping()->isMixed) {$element = [$entityKey => $element];}
in
vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php
->
hydrateRowData
(line 147)
protected function hydrateAllData(): array{$result = [];while ($row = $this->statement()->fetchAssociative()) {$this->hydrateRowData($row, $result);}// Take snapshots from all newly initialized collectionsforeach ($this->initializedCollections as $coll) {$coll->takeSnapshot();
in
vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php
->
hydrateAllData
(line 176)
$this->em->getEventManager()->addEventListener([Events::onClear], $this);$this->prepare();try {$result = $this->hydrateAllData();} finally {$this->cleanup();}return $result;
in
vendor/doctrine/orm/src/AbstractQuery.php
->
hydrateAll
(line 943)
$rsm = $this->getResultSetMapping();if ($rsm === null) {throw new LogicException('Uninitialized result set mapping.');}$data = $this->em->newHydrator($this->hydrationMode)->hydrateAll($stmt, $rsm, $this->hints);$setCacheEntry($data);return $data;}
in
vendor/doctrine/orm/src/AbstractQuery.php
->
executeIgnoreQueryCache
(line 886)
): mixed {if ($this->cacheable && $this->isCacheEnabled()) {return $this->executeUsingQueryCache($parameters, $hydrationMode);}return $this->executeIgnoreQueryCache($parameters, $hydrationMode);}/*** Execute query ignoring second level cache.*
in
vendor/doctrine/orm/src/AbstractQuery.php
->
execute
(line 688)
** @phpstan-param string|AbstractQuery::HYDRATE_* $hydrationMode*/public function getResult(string|int $hydrationMode = self::HYDRATE_OBJECT): mixed{return $this->execute(null, $hydrationMode);}/*** Gets the array of results for the query.*
}public function guztiakOrdenean() {return $this->getEntityManager()->createQuery('SELECT d FROM App\Entity\Ikasturtea d ORDER BY d.ikasturtea DESC')->getResult();}public function pasaturakoakOrdenean() {$appsetup = $this->getEntityManager()->createQuery('SELECT a FROM App\Entity\AppSetup a WHERE a.id = 1')
#[Route('/{_locale}/', name: 'home')]public function homeAction(Request $request, \Symfony\Component\Security\Csrf\CsrfTokenManagerInterface $csrfTokenManager): Response{//IKASTURTEAK$ikasturteas = $this->getRepository(Ikasturtea::class)->guztiakOrdenean();if (count($ikasturteas) == 0) {$idIkasturtea = date("m") > 6 ? date("Y"): date("Y")-1;$ikasturtea = new Ikasturtea();$ikasturtea->setIkasturtea($idIkasturtea."-".((int)$idIkasturtea+1));$ikasturtea->setId($idIkasturtea);
in
vendor/symfony/http-kernel/HttpKernel.php
->
homeAction
(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 193)
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());
<?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 17:37:57 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "0a7311"
},
"request_uri": "https://pasaiamusikal.roberto.eus/_profiler/0a7311?panel=exception&type=request",
"method": "GET"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\UX\Turbo\Request\RequestListener::__invoke". {
"event": "kernel.request",
"listener": "Symfony\\UX\\Turbo\\Request\\RequestListener::__invoke"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\Bridge\Doctrine\Middleware\IdleConnection\Listener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection\\Listener::onKernelRequest"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\Component\AssetMapper\AssetMapperDevServerSubscriber::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\AssetMapper\\AssetMapperDevServerSubscriber::onKernelRequest"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator". {
"event": "kernel.request",
"listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.request" to listener "Knp\Bundle\PaginatorBundle\Subscriber\SlidingPaginationSubscriber::onKernelRequest". {
"event": "kernel.request",
"listener": "Knp\\Bundle\\PaginatorBundle\\Subscriber\\SlidingPaginationSubscriber::onKernelRequest"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". {
"event": "kernel.controller",
"listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController". {
"event": "kernel.controller",
"listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\IsSignatureValidAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\IsSignatureValidAttributeListener::onKernelControllerArguments"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsCsrfTokenValidAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsCsrfTokenValidAttributeListener::onKernelControllerArguments"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsGrantedAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsGrantedAttributeListener::onKernelControllerArguments"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\CacheAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\CacheAttributeListener::onKernelControllerArguments"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.controller_arguments" to listener "ContainerH4oMuot\RequestPayloadValueResolverGhost01ca9cc::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "ContainerH4oMuot\\RequestPayloadValueResolverGhost01ca9cc::onKernelControllerArguments"
}
|
| DEBUG 17:37:57 | event |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}
|
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.apiVocaltraining' in 'SELECT'
at vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:69
at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()
(vendor/doctrine/dbal/src/Connection.php:1976)
at Doctrine\DBAL\Connection->handleDriverException()
(vendor/doctrine/dbal/src/Connection.php:1918)
at Doctrine\DBAL\Connection->convertExceptionDuringQuery()
(vendor/doctrine/dbal/src/Connection.php:1111)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:738)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:837)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadOneToOneEntity()
(vendor/doctrine/orm/src/UnitOfWork.php:2458)
at Doctrine\ORM\UnitOfWork->createEntity()
(vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php:268)
at Doctrine\ORM\Internal\Hydration\ObjectHydrator->getEntity()
(vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php:495)
at Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateRowData()
(vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php:147)
at Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateAllData()
(vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php:176)
at Doctrine\ORM\Internal\Hydration\AbstractHydrator->hydrateAll()
(vendor/doctrine/orm/src/AbstractQuery.php:943)
at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache()
(vendor/doctrine/orm/src/AbstractQuery.php:886)
at Doctrine\ORM\AbstractQuery->execute()
(vendor/doctrine/orm/src/AbstractQuery.php:688)
at Doctrine\ORM\AbstractQuery->getResult()
(src/Repository/IkasturteaRepository.php:21)
at App\Repository\IkasturteaRepository->guztiakOrdenean()
(src/Controller/HomeController.php:39)
at App\Controller\HomeController->homeAction()
(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:193)
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/html/dumde/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.apiVocaltraining' in 'SELECT'
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:132)
at Doctrine\DBAL\Driver\PDO\Statement->execute()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:69)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
(vendor/doctrine/dbal/src/Logging/Statement.php:98)
at Doctrine\DBAL\Logging\Statement->execute()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:69)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
(vendor/symfony/doctrine-bridge/Middleware/Debug/DBAL3/Statement.php:70)
at Symfony\Bridge\Doctrine\Middleware\Debug\DBAL3\Statement->execute()
(vendor/doctrine/dbal/src/Connection.php:1104)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:738)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:837)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadOneToOneEntity()
(vendor/doctrine/orm/src/UnitOfWork.php:2458)
at Doctrine\ORM\UnitOfWork->createEntity()
(vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php:268)
at Doctrine\ORM\Internal\Hydration\ObjectHydrator->getEntity()
(vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php:495)
at Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateRowData()
(vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php:147)
at Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateAllData()
(vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php:176)
at Doctrine\ORM\Internal\Hydration\AbstractHydrator->hydrateAll()
(vendor/doctrine/orm/src/AbstractQuery.php:943)
at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache()
(vendor/doctrine/orm/src/AbstractQuery.php:886)
at Doctrine\ORM\AbstractQuery->execute()
(vendor/doctrine/orm/src/AbstractQuery.php:688)
at Doctrine\ORM\AbstractQuery->getResult()
(src/Repository/IkasturteaRepository.php:21)
at App\Repository\IkasturteaRepository->guztiakOrdenean()
(src/Controller/HomeController.php:39)
at App\Controller\HomeController->homeAction()
(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:193)
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/html/dumde/vendor/autoload_runtime.php')
(public/index.php:5)
|
|
[1/3]
PDOException
|
|---|
PDOException:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.apiVocaltraining' in 'SELECT'
at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:130
at PDOStatement->execute()
(vendor/doctrine/dbal/src/Driver/PDO/Statement.php:130)
at Doctrine\DBAL\Driver\PDO\Statement->execute()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:69)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
(vendor/doctrine/dbal/src/Logging/Statement.php:98)
at Doctrine\DBAL\Logging\Statement->execute()
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:69)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
(vendor/symfony/doctrine-bridge/Middleware/Debug/DBAL3/Statement.php:70)
at Symfony\Bridge\Doctrine\Middleware\Debug\DBAL3\Statement->execute()
(vendor/doctrine/dbal/src/Connection.php:1104)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:738)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:837)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadOneToOneEntity()
(vendor/doctrine/orm/src/UnitOfWork.php:2458)
at Doctrine\ORM\UnitOfWork->createEntity()
(vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php:268)
at Doctrine\ORM\Internal\Hydration\ObjectHydrator->getEntity()
(vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php:495)
at Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateRowData()
(vendor/doctrine/orm/src/Internal/Hydration/ObjectHydrator.php:147)
at Doctrine\ORM\Internal\Hydration\ObjectHydrator->hydrateAllData()
(vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php:176)
at Doctrine\ORM\Internal\Hydration\AbstractHydrator->hydrateAll()
(vendor/doctrine/orm/src/AbstractQuery.php:943)
at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache()
(vendor/doctrine/orm/src/AbstractQuery.php:886)
at Doctrine\ORM\AbstractQuery->execute()
(vendor/doctrine/orm/src/AbstractQuery.php:688)
at Doctrine\ORM\AbstractQuery->getResult()
(src/Repository/IkasturteaRepository.php:21)
at App\Repository\IkasturteaRepository->guztiakOrdenean()
(src/Controller/HomeController.php:39)
at App\Controller\HomeController->homeAction()
(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:193)
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/html/dumde/vendor/autoload_runtime.php')
(public/index.php:5)
|