Exceptions
Exceptions 3
Doctrine\DBAL\Exception\ InvalidFieldNameException
Show exception properties
Doctrine\DBAL\Exception\InvalidFieldNameException {#1307 -query: Doctrine\DBAL\Query {#1304 -sql: "SELECT t0.date_debut AS date_debut_1, t0.nombre AS nombre_2, t0.montant AS montant_3, t0.id AS id_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.adherent_id AS adherent_id_7, t0.panier_id AS panier_id_8, t0.saison_id AS saison_id_9, t0.mode_paiement_id AS mode_paiement_id_10 FROM abonnement t0 WHERE t0.id = ?" -params: array:1 [ 0 => 26602 ] -types: array:1 [ 0 => "bigint" ] } }
case '42702':return new NonUniqueFieldNameException($exception, $query);case '42703':return new InvalidFieldNameException($exception, $query);case '42P01':return new TableNotFoundException($exception, $query);case '42P07':
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 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 756)
/*** {@inheritDoc}*/public function loadById(array $identifier, object|null $entity = null): object|null{return $this->load($identifier, $entity);}/*** {@inheritDoc}*/
in
vendor/doctrine/orm/src/Proxy/ProxyFactory.php
->
loadById
(line 223)
$identifier,$entityPersister,$identifierFlattener,$classMetadata,): void {$original = $entityPersister->loadById($identifier, $object);if ($original === null) {throw EntityNotFoundException::fromClassNameAndIdentifier($classMetadata->getName(),$identifierFlattener->flattenIdentifier($classMetadata, $identifier),);
ProxyFactory::{closure:Doctrine\ORM\Proxy\ProxyFactory::getProxy():217}()
in
vendor/doctrine/orm/src/UnitOfWork.php
->
initializeLazyObject
(line 3065)
return;}if ($this->em->getConfiguration()->isNativeLazyObjectsEnabled()) {$reflection = $this->em->getClassMetadata($obj::class)->getReflectionClass();$reflection->initializeLazyObject($obj);}}/** Tests if a value is an uninitialized entity. */public function isUninitializedObject(mixed $obj): bool
in
vendor/doctrine/orm/src/EntityManager.php
->
initializeObject
(line 566)
return $this->proxyFactory;}public function initializeObject(object $obj): void{$this->unitOfWork->initializeObject($obj);}/*** {@inheritDoc}*/
in
vendor/symfony/doctrine-bridge/Form/ChoiceList/IdReader.php
->
initializeObject
(line 89)
if (!$this->om->contains($object)) {throw new RuntimeException(\sprintf('Entity of type "%s" passed to the choice field must be managed. Maybe you forget to persist it in the entity manager?', get_debug_type($object)));}$this->om->initializeObject($object);$idValue = current($this->classMetadata->getIdentifierValues($object));if ($this->associationIdReader) {$idValue = $this->associationIdReader->getIdValue($idValue);
in
vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php
->
getIdValue
(line 49)
return [];}if ($value) {// if a value callback exists, use itreturn array_map(fn ($item) => (string) $value($item), $choices);}return $this->doLoadValuesForChoices($choices);}
AbstractChoiceLoader->{closure:Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader::loadValuesForChoices():49}()
in
vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php
array_map
(line 49)
return [];}if ($value) {// if a value callback exists, use itreturn array_map(fn ($item) => (string) $value($item), $choices);}return $this->doLoadValuesForChoices($choices);}
in
vendor/symfony/form/ChoiceList/LazyChoiceList.php
->
loadValuesForChoices
(line 81)
return $this->loader->loadChoicesForValues($values, $this->value);}public function getValuesForChoices(array $choices): array{return $this->loader->loadValuesForChoices($choices, $this->value);}}
in
vendor/symfony/form/Extension/Core/DataTransformer/ChoiceToValueTransformer.php
->
getValuesForChoices
(line 32)
) {}public function transform(mixed $choice): mixed{return (string) current($this->choiceList->getValuesForChoices([$choice]));}public function reverseTransform(mixed $value): mixed{if (null !== $value && !\is_string($value)) {
in
vendor/symfony/form/Form.php
->
transform
(line 984)
return null === $value || \is_scalar($value) ? (string) $value : $value;}try {foreach ($transformers as $transformer) {$value = $transformer->transform($value);}} catch (TransformationFailedException $exception) {throw new TransformationFailedException(\sprintf('Unable to transform value for property path "%s": ', $this->getPropertyPath()).$exception->getMessage(), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());}
in
vendor/symfony/form/Form.php
->
normToView
(line 299)
}// Synchronize representations - must not change the content!// Transformation exceptions are not caught on initialization$normData = $this->modelToNorm($modelData);$viewData = $this->normToView($normData);// Validate if view data matches data class (unless empty)if (!FormUtil::isEmpty($viewData)) {$dataClass = $this->config->getDataClass();
in
vendor/symfony/form/Extension/Core/DataMapper/DataMapper.php
->
setData
(line 50)
foreach ($forms as $form) {$config = $form->getConfig();if (!$empty && $config->getMapped() && $this->dataAccessor->isReadable($data, $form)) {$form->setData($this->dataAccessor->getValue($data, $form));} else {$form->setData($config->getData());}}}
in
vendor/symfony/form/Form.php
->
mapDataToForms
(line 321)
$this->lockSetData = false;// Compound forms don't need to invoke this method if they don't have childrenif (\count($this->children) > 0) {// Update child forms from the data (unless their config data is locked)$this->config->getDataMapper()->mapDataToForms($viewData, new \RecursiveIteratorIterator(new InheritDataAwareIterator($this->children)));}if ($dispatcher->hasListeners(FormEvents::POST_SET_DATA)) {$event = new PostSetDataEvent($this, $modelData);$dispatcher->dispatch($event, FormEvents::POST_SET_DATA);
in
vendor/symfony/form/Form.php
->
setData
(line 410)
// Guarantee that the *_SET_DATA events have been triggered once the// form is initialized. This makes sure that dynamically added or// removed fields are already visible after initialization.if (!$this->defaultDataSet) {$this->setData($this->config->getData());}return $this;}
in
vendor/symfony/form/FormBuilder.php
->
initialize
(line 171)
$form->add($child->setAutoInitialize(false)->getForm());}if ($this->getAutoInitialize()) {// Automatically initialize the form if it is configured so$form->initialize();}return $form;}
in
vendor/symfony/form/FormFactory.php
->
getForm
(line 32)
/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface{return $this->createBuilder($type, $data, $options)->getForm();}/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
create
(line 354)
** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/protected function createForm(string $type, mixed $data = null, array $options = []): FormInterface{return $this->container->get('form.factory')->create($type, $data, $options);}/*** Creates and returns a form builder instance.*/
}#[Route('/{id}/edit', name: 'app_livraison_edit', methods: ['GET', 'POST'])]public function edit(Request $request, Livraison $livraison, EntityManagerInterface $entityManager): Response{$form = $this->createForm(LivraisonType::class, $livraison);$form->handleRequest($request);if ($form->isSubmitted() && $form->isValid()) {$entityManager->flush();
in
vendor/symfony/http-kernel/HttpKernel.php
->
edit
(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());
<?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 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 756)
/*** {@inheritDoc}*/public function loadById(array $identifier, object|null $entity = null): object|null{return $this->load($identifier, $entity);}/*** {@inheritDoc}*/
in
vendor/doctrine/orm/src/Proxy/ProxyFactory.php
->
loadById
(line 223)
$identifier,$entityPersister,$identifierFlattener,$classMetadata,): void {$original = $entityPersister->loadById($identifier, $object);if ($original === null) {throw EntityNotFoundException::fromClassNameAndIdentifier($classMetadata->getName(),$identifierFlattener->flattenIdentifier($classMetadata, $identifier),);
ProxyFactory::{closure:Doctrine\ORM\Proxy\ProxyFactory::getProxy():217}()
in
vendor/doctrine/orm/src/UnitOfWork.php
->
initializeLazyObject
(line 3065)
return;}if ($this->em->getConfiguration()->isNativeLazyObjectsEnabled()) {$reflection = $this->em->getClassMetadata($obj::class)->getReflectionClass();$reflection->initializeLazyObject($obj);}}/** Tests if a value is an uninitialized entity. */public function isUninitializedObject(mixed $obj): bool
in
vendor/doctrine/orm/src/EntityManager.php
->
initializeObject
(line 566)
return $this->proxyFactory;}public function initializeObject(object $obj): void{$this->unitOfWork->initializeObject($obj);}/*** {@inheritDoc}*/
in
vendor/symfony/doctrine-bridge/Form/ChoiceList/IdReader.php
->
initializeObject
(line 89)
if (!$this->om->contains($object)) {throw new RuntimeException(\sprintf('Entity of type "%s" passed to the choice field must be managed. Maybe you forget to persist it in the entity manager?', get_debug_type($object)));}$this->om->initializeObject($object);$idValue = current($this->classMetadata->getIdentifierValues($object));if ($this->associationIdReader) {$idValue = $this->associationIdReader->getIdValue($idValue);
in
vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php
->
getIdValue
(line 49)
return [];}if ($value) {// if a value callback exists, use itreturn array_map(fn ($item) => (string) $value($item), $choices);}return $this->doLoadValuesForChoices($choices);}
AbstractChoiceLoader->{closure:Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader::loadValuesForChoices():49}()
in
vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php
array_map
(line 49)
return [];}if ($value) {// if a value callback exists, use itreturn array_map(fn ($item) => (string) $value($item), $choices);}return $this->doLoadValuesForChoices($choices);}
in
vendor/symfony/form/ChoiceList/LazyChoiceList.php
->
loadValuesForChoices
(line 81)
return $this->loader->loadChoicesForValues($values, $this->value);}public function getValuesForChoices(array $choices): array{return $this->loader->loadValuesForChoices($choices, $this->value);}}
in
vendor/symfony/form/Extension/Core/DataTransformer/ChoiceToValueTransformer.php
->
getValuesForChoices
(line 32)
) {}public function transform(mixed $choice): mixed{return (string) current($this->choiceList->getValuesForChoices([$choice]));}public function reverseTransform(mixed $value): mixed{if (null !== $value && !\is_string($value)) {
in
vendor/symfony/form/Form.php
->
transform
(line 984)
return null === $value || \is_scalar($value) ? (string) $value : $value;}try {foreach ($transformers as $transformer) {$value = $transformer->transform($value);}} catch (TransformationFailedException $exception) {throw new TransformationFailedException(\sprintf('Unable to transform value for property path "%s": ', $this->getPropertyPath()).$exception->getMessage(), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());}
in
vendor/symfony/form/Form.php
->
normToView
(line 299)
}// Synchronize representations - must not change the content!// Transformation exceptions are not caught on initialization$normData = $this->modelToNorm($modelData);$viewData = $this->normToView($normData);// Validate if view data matches data class (unless empty)if (!FormUtil::isEmpty($viewData)) {$dataClass = $this->config->getDataClass();
in
vendor/symfony/form/Extension/Core/DataMapper/DataMapper.php
->
setData
(line 50)
foreach ($forms as $form) {$config = $form->getConfig();if (!$empty && $config->getMapped() && $this->dataAccessor->isReadable($data, $form)) {$form->setData($this->dataAccessor->getValue($data, $form));} else {$form->setData($config->getData());}}}
in
vendor/symfony/form/Form.php
->
mapDataToForms
(line 321)
$this->lockSetData = false;// Compound forms don't need to invoke this method if they don't have childrenif (\count($this->children) > 0) {// Update child forms from the data (unless their config data is locked)$this->config->getDataMapper()->mapDataToForms($viewData, new \RecursiveIteratorIterator(new InheritDataAwareIterator($this->children)));}if ($dispatcher->hasListeners(FormEvents::POST_SET_DATA)) {$event = new PostSetDataEvent($this, $modelData);$dispatcher->dispatch($event, FormEvents::POST_SET_DATA);
in
vendor/symfony/form/Form.php
->
setData
(line 410)
// Guarantee that the *_SET_DATA events have been triggered once the// form is initialized. This makes sure that dynamically added or// removed fields are already visible after initialization.if (!$this->defaultDataSet) {$this->setData($this->config->getData());}return $this;}
in
vendor/symfony/form/FormBuilder.php
->
initialize
(line 171)
$form->add($child->setAutoInitialize(false)->getForm());}if ($this->getAutoInitialize()) {// Automatically initialize the form if it is configured so$form->initialize();}return $form;}
in
vendor/symfony/form/FormFactory.php
->
getForm
(line 32)
/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface{return $this->createBuilder($type, $data, $options)->getForm();}/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
create
(line 354)
** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/protected function createForm(string $type, mixed $data = null, array $options = []): FormInterface{return $this->container->get('form.factory')->create($type, $data, $options);}/*** Creates and returns a form builder instance.*/
}#[Route('/{id}/edit', name: 'app_livraison_edit', methods: ['GET', 'POST'])]public function edit(Request $request, Livraison $livraison, EntityManagerInterface $entityManager): Response{$form = $this->createForm(LivraisonType::class, $livraison);$form->handleRequest($request);if ($form->isSubmitted() && $form->isValid()) {$entityManager->flush();
in
vendor/symfony/http-kernel/HttpKernel.php
->
edit
(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());
<?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 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 756)
/*** {@inheritDoc}*/public function loadById(array $identifier, object|null $entity = null): object|null{return $this->load($identifier, $entity);}/*** {@inheritDoc}*/
in
vendor/doctrine/orm/src/Proxy/ProxyFactory.php
->
loadById
(line 223)
$identifier,$entityPersister,$identifierFlattener,$classMetadata,): void {$original = $entityPersister->loadById($identifier, $object);if ($original === null) {throw EntityNotFoundException::fromClassNameAndIdentifier($classMetadata->getName(),$identifierFlattener->flattenIdentifier($classMetadata, $identifier),);
ProxyFactory::{closure:Doctrine\ORM\Proxy\ProxyFactory::getProxy():217}()
in
vendor/doctrine/orm/src/UnitOfWork.php
->
initializeLazyObject
(line 3065)
return;}if ($this->em->getConfiguration()->isNativeLazyObjectsEnabled()) {$reflection = $this->em->getClassMetadata($obj::class)->getReflectionClass();$reflection->initializeLazyObject($obj);}}/** Tests if a value is an uninitialized entity. */public function isUninitializedObject(mixed $obj): bool
in
vendor/doctrine/orm/src/EntityManager.php
->
initializeObject
(line 566)
return $this->proxyFactory;}public function initializeObject(object $obj): void{$this->unitOfWork->initializeObject($obj);}/*** {@inheritDoc}*/
in
vendor/symfony/doctrine-bridge/Form/ChoiceList/IdReader.php
->
initializeObject
(line 89)
if (!$this->om->contains($object)) {throw new RuntimeException(\sprintf('Entity of type "%s" passed to the choice field must be managed. Maybe you forget to persist it in the entity manager?', get_debug_type($object)));}$this->om->initializeObject($object);$idValue = current($this->classMetadata->getIdentifierValues($object));if ($this->associationIdReader) {$idValue = $this->associationIdReader->getIdValue($idValue);
in
vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php
->
getIdValue
(line 49)
return [];}if ($value) {// if a value callback exists, use itreturn array_map(fn ($item) => (string) $value($item), $choices);}return $this->doLoadValuesForChoices($choices);}
AbstractChoiceLoader->{closure:Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader::loadValuesForChoices():49}()
in
vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php
array_map
(line 49)
return [];}if ($value) {// if a value callback exists, use itreturn array_map(fn ($item) => (string) $value($item), $choices);}return $this->doLoadValuesForChoices($choices);}
in
vendor/symfony/form/ChoiceList/LazyChoiceList.php
->
loadValuesForChoices
(line 81)
return $this->loader->loadChoicesForValues($values, $this->value);}public function getValuesForChoices(array $choices): array{return $this->loader->loadValuesForChoices($choices, $this->value);}}
in
vendor/symfony/form/Extension/Core/DataTransformer/ChoiceToValueTransformer.php
->
getValuesForChoices
(line 32)
) {}public function transform(mixed $choice): mixed{return (string) current($this->choiceList->getValuesForChoices([$choice]));}public function reverseTransform(mixed $value): mixed{if (null !== $value && !\is_string($value)) {
in
vendor/symfony/form/Form.php
->
transform
(line 984)
return null === $value || \is_scalar($value) ? (string) $value : $value;}try {foreach ($transformers as $transformer) {$value = $transformer->transform($value);}} catch (TransformationFailedException $exception) {throw new TransformationFailedException(\sprintf('Unable to transform value for property path "%s": ', $this->getPropertyPath()).$exception->getMessage(), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());}
in
vendor/symfony/form/Form.php
->
normToView
(line 299)
}// Synchronize representations - must not change the content!// Transformation exceptions are not caught on initialization$normData = $this->modelToNorm($modelData);$viewData = $this->normToView($normData);// Validate if view data matches data class (unless empty)if (!FormUtil::isEmpty($viewData)) {$dataClass = $this->config->getDataClass();
in
vendor/symfony/form/Extension/Core/DataMapper/DataMapper.php
->
setData
(line 50)
foreach ($forms as $form) {$config = $form->getConfig();if (!$empty && $config->getMapped() && $this->dataAccessor->isReadable($data, $form)) {$form->setData($this->dataAccessor->getValue($data, $form));} else {$form->setData($config->getData());}}}
in
vendor/symfony/form/Form.php
->
mapDataToForms
(line 321)
$this->lockSetData = false;// Compound forms don't need to invoke this method if they don't have childrenif (\count($this->children) > 0) {// Update child forms from the data (unless their config data is locked)$this->config->getDataMapper()->mapDataToForms($viewData, new \RecursiveIteratorIterator(new InheritDataAwareIterator($this->children)));}if ($dispatcher->hasListeners(FormEvents::POST_SET_DATA)) {$event = new PostSetDataEvent($this, $modelData);$dispatcher->dispatch($event, FormEvents::POST_SET_DATA);
in
vendor/symfony/form/Form.php
->
setData
(line 410)
// Guarantee that the *_SET_DATA events have been triggered once the// form is initialized. This makes sure that dynamically added or// removed fields are already visible after initialization.if (!$this->defaultDataSet) {$this->setData($this->config->getData());}return $this;}
in
vendor/symfony/form/FormBuilder.php
->
initialize
(line 171)
$form->add($child->setAutoInitialize(false)->getForm());}if ($this->getAutoInitialize()) {// Automatically initialize the form if it is configured so$form->initialize();}return $form;}
in
vendor/symfony/form/FormFactory.php
->
getForm
(line 32)
/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface{return $this->createBuilder($type, $data, $options)->getForm();}/*** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
create
(line 354)
** @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)*/protected function createForm(string $type, mixed $data = null, array $options = []): FormInterface{return $this->container->get('form.factory')->create($type, $data, $options);}/*** Creates and returns a form builder instance.*/
}#[Route('/{id}/edit', name: 'app_livraison_edit', methods: ['GET', 'POST'])]public function edit(Request $request, Livraison $livraison, EntityManagerInterface $entityManager): Response{$form = $this->createForm(LivraisonType::class, $livraison);$form->handleRequest($request);if ($form->isSubmitted() && $form->isValid()) {$entityManager->flush();
in
vendor/symfony/http-kernel/HttpKernel.php
->
edit
(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());
<?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 05:59:10 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "0c2b83"
},
"request_uri": "http://cocagne.neotech.fr/_profiler/0c2b83?panel=exception&type=request",
"method": "GET"
}
|
Stack Traces 3
|
[3/3]
InvalidFieldNameException
|
|---|
Doctrine\DBAL\Exception\InvalidFieldNameException:
An exception occurred while executing a query: SQLSTATE[42703]: Undefined column: 7 ERREUR: la colonne t0.mode_paiement_id n'existe pas
LINE 1: ...r_id AS panier_id_8, t0.saison_id AS saison_id_9, t0.mode_pa...
^
HINT: Peut-être que vous souhaitiez référencer la colonne « t0.moyen_paiement_id ».
at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:69
at Doctrine\DBAL\Driver\API\PostgreSQL\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:738)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:756)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById()
(vendor/doctrine/orm/src/Proxy/ProxyFactory.php:223)
at Doctrine\ORM\Proxy\ProxyFactory::{closure:Doctrine\ORM\Proxy\ProxyFactory::getProxy():217}()
at ReflectionClass->initializeLazyObject()
(vendor/doctrine/orm/src/UnitOfWork.php:3065)
at Doctrine\ORM\UnitOfWork->initializeObject()
(vendor/doctrine/orm/src/EntityManager.php:566)
at Doctrine\ORM\EntityManager->initializeObject()
(vendor/symfony/doctrine-bridge/Form/ChoiceList/IdReader.php:89)
at Symfony\Bridge\Doctrine\Form\ChoiceList\IdReader->getIdValue()
(vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:49)
at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->{closure:Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader::loadValuesForChoices():49}()
at array_map()
(vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:49)
at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->loadValuesForChoices()
(vendor/symfony/form/ChoiceList/LazyChoiceList.php:81)
at Symfony\Component\Form\ChoiceList\LazyChoiceList->getValuesForChoices()
(vendor/symfony/form/Extension/Core/DataTransformer/ChoiceToValueTransformer.php:32)
at Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer->transform()
(vendor/symfony/form/Form.php:984)
at Symfony\Component\Form\Form->normToView()
(vendor/symfony/form/Form.php:299)
at Symfony\Component\Form\Form->setData()
(vendor/symfony/form/Extension/Core/DataMapper/DataMapper.php:50)
at Symfony\Component\Form\Extension\Core\DataMapper\DataMapper->mapDataToForms()
(vendor/symfony/form/Form.php:321)
at Symfony\Component\Form\Form->setData()
(vendor/symfony/form/Form.php:410)
at Symfony\Component\Form\Form->initialize()
(vendor/symfony/form/FormBuilder.php:171)
at Symfony\Component\Form\FormBuilder->getForm()
(vendor/symfony/form/FormFactory.php:32)
at Symfony\Component\Form\FormFactory->create()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:354)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createForm()
(src/Controller/LivraisonController.php:59)
at App\Controller\LivraisonController->edit()
(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/lib/frankenphp/thaon/vendor/autoload_runtime.php')
(public/index.php:5)
|
|
[2/3]
Exception
|
|---|
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[42703]: Undefined column: 7 ERREUR: la colonne t0.mode_paiement_id n'existe pas
LINE 1: ...r_id AS panier_id_8, t0.saison_id AS saison_id_9, t0.mode_pa...
^
HINT: Peut-être que vous souhaitiez référencer la colonne « t0.moyen_paiement_id ».
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:738)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:756)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById()
(vendor/doctrine/orm/src/Proxy/ProxyFactory.php:223)
at Doctrine\ORM\Proxy\ProxyFactory::{closure:Doctrine\ORM\Proxy\ProxyFactory::getProxy():217}()
at ReflectionClass->initializeLazyObject()
(vendor/doctrine/orm/src/UnitOfWork.php:3065)
at Doctrine\ORM\UnitOfWork->initializeObject()
(vendor/doctrine/orm/src/EntityManager.php:566)
at Doctrine\ORM\EntityManager->initializeObject()
(vendor/symfony/doctrine-bridge/Form/ChoiceList/IdReader.php:89)
at Symfony\Bridge\Doctrine\Form\ChoiceList\IdReader->getIdValue()
(vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:49)
at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->{closure:Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader::loadValuesForChoices():49}()
at array_map()
(vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:49)
at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->loadValuesForChoices()
(vendor/symfony/form/ChoiceList/LazyChoiceList.php:81)
at Symfony\Component\Form\ChoiceList\LazyChoiceList->getValuesForChoices()
(vendor/symfony/form/Extension/Core/DataTransformer/ChoiceToValueTransformer.php:32)
at Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer->transform()
(vendor/symfony/form/Form.php:984)
at Symfony\Component\Form\Form->normToView()
(vendor/symfony/form/Form.php:299)
at Symfony\Component\Form\Form->setData()
(vendor/symfony/form/Extension/Core/DataMapper/DataMapper.php:50)
at Symfony\Component\Form\Extension\Core\DataMapper\DataMapper->mapDataToForms()
(vendor/symfony/form/Form.php:321)
at Symfony\Component\Form\Form->setData()
(vendor/symfony/form/Form.php:410)
at Symfony\Component\Form\Form->initialize()
(vendor/symfony/form/FormBuilder.php:171)
at Symfony\Component\Form\FormBuilder->getForm()
(vendor/symfony/form/FormFactory.php:32)
at Symfony\Component\Form\FormFactory->create()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:354)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createForm()
(src/Controller/LivraisonController.php:59)
at App\Controller\LivraisonController->edit()
(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/lib/frankenphp/thaon/vendor/autoload_runtime.php')
(public/index.php:5)
|
|
[1/3]
PDOException
|
|---|
PDOException:
SQLSTATE[42703]: Undefined column: 7 ERREUR: la colonne t0.mode_paiement_id n'existe pas
LINE 1: ...r_id AS panier_id_8, t0.saison_id AS saison_id_9, t0.mode_pa...
^
HINT: Peut-être que vous souhaitiez référencer la colonne « t0.moyen_paiement_id ».
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:738)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load()
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:756)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById()
(vendor/doctrine/orm/src/Proxy/ProxyFactory.php:223)
at Doctrine\ORM\Proxy\ProxyFactory::{closure:Doctrine\ORM\Proxy\ProxyFactory::getProxy():217}()
at ReflectionClass->initializeLazyObject()
(vendor/doctrine/orm/src/UnitOfWork.php:3065)
at Doctrine\ORM\UnitOfWork->initializeObject()
(vendor/doctrine/orm/src/EntityManager.php:566)
at Doctrine\ORM\EntityManager->initializeObject()
(vendor/symfony/doctrine-bridge/Form/ChoiceList/IdReader.php:89)
at Symfony\Bridge\Doctrine\Form\ChoiceList\IdReader->getIdValue()
(vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:49)
at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->{closure:Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader::loadValuesForChoices():49}()
at array_map()
(vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:49)
at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->loadValuesForChoices()
(vendor/symfony/form/ChoiceList/LazyChoiceList.php:81)
at Symfony\Component\Form\ChoiceList\LazyChoiceList->getValuesForChoices()
(vendor/symfony/form/Extension/Core/DataTransformer/ChoiceToValueTransformer.php:32)
at Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer->transform()
(vendor/symfony/form/Form.php:984)
at Symfony\Component\Form\Form->normToView()
(vendor/symfony/form/Form.php:299)
at Symfony\Component\Form\Form->setData()
(vendor/symfony/form/Extension/Core/DataMapper/DataMapper.php:50)
at Symfony\Component\Form\Extension\Core\DataMapper\DataMapper->mapDataToForms()
(vendor/symfony/form/Form.php:321)
at Symfony\Component\Form\Form->setData()
(vendor/symfony/form/Form.php:410)
at Symfony\Component\Form\Form->initialize()
(vendor/symfony/form/FormBuilder.php:171)
at Symfony\Component\Form\FormBuilder->getForm()
(vendor/symfony/form/FormFactory.php:32)
at Symfony\Component\Form\FormFactory->create()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:354)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->createForm()
(src/Controller/LivraisonController.php:59)
at App\Controller\LivraisonController->edit()
(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/lib/frankenphp/thaon/vendor/autoload_runtime.php')
(public/index.php:5)
|