Error 500 Internal Server Error

GET http://cocagne.neotech.fr/livraison/1960101/edit

Forwarded to ErrorController (6f2af2)

Exceptions

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 ».

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 => 27619
    ]
    -types: array:1 [
      0 => "bigint"
    ]
  }
}
  1. case '42702':
  2. return new NonUniqueFieldNameException($exception, $query);
  3. case '42703':
  4. return new InvalidFieldNameException($exception, $query);
  5. case '42P01':
  6. return new TableNotFoundException($exception, $query);
  7. case '42P07':
  1. private function handleDriverException(
  2. Driver\Exception $driverException,
  3. ?Query $query,
  4. ): DriverException {
  5. $this->exceptionConverter ??= $this->driver->getExceptionConverter();
  6. $exception = $this->exceptionConverter->convert($driverException, $query);
  7. if ($exception instanceof ConnectionLost) {
  8. $this->close();
  9. }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1396)
  1. Driver\Exception $e,
  2. string $sql,
  3. array $params = [],
  4. array $types = [],
  5. ): DriverException {
  6. return $this->handleDriverException($e, new Query($sql, $params, $types));
  7. }
  8. /** @internal */
  9. final public function convertException(Driver\Exception $e): DriverException
  10. {
in vendor/doctrine/dbal/src/Connection.php -> convertExceptionDuringQuery (line 809)
  1. $result = $connection->query($sql);
  2. }
  3. return new Result($result, $this);
  4. } catch (Driver\Exception $e) {
  5. throw $this->convertExceptionDuringQuery($e, $sql, $params, $types);
  6. }
  7. }
  8. /**
  9. * Executes a caching query.
  1. ): object|null {
  2. $this->switchPersisterContext(null, $limit);
  3. $sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
  4. [$params, $types] = $this->expandParameters($criteria);
  5. $stmt = $this->conn->executeQuery($sql, $params, $types);
  6. if ($entity !== null) {
  7. $hints[Query::HINT_REFRESH] = true;
  8. $hints[Query::HINT_REFRESH_ENTITY] = $entity;
  9. }
  1. /**
  2. * {@inheritDoc}
  3. */
  4. public function loadById(array $identifier, object|null $entity = null): object|null
  5. {
  6. return $this->load($identifier, $entity);
  7. }
  8. /**
  9. * {@inheritDoc}
  10. */
  1. $identifier,
  2. $entityPersister,
  3. $identifierFlattener,
  4. $classMetadata,
  5. ): void {
  6. $original = $entityPersister->loadById($identifier, $object);
  7. if ($original === null) {
  8. throw EntityNotFoundException::fromClassNameAndIdentifier(
  9. $classMetadata->getName(),
  10. $identifierFlattener->flattenIdentifier($classMetadata, $identifier),
  11. );
ProxyFactory::{closure:Doctrine\ORM\Proxy\ProxyFactory::getProxy():217}()
in vendor/doctrine/orm/src/UnitOfWork.php -> initializeLazyObject (line 3065)
  1. return;
  2. }
  3. if ($this->em->getConfiguration()->isNativeLazyObjectsEnabled()) {
  4. $reflection = $this->em->getClassMetadata($obj::class)->getReflectionClass();
  5. $reflection->initializeLazyObject($obj);
  6. }
  7. }
  8. /** Tests if a value is an uninitialized entity. */
  9. public function isUninitializedObject(mixed $obj): bool
in vendor/doctrine/orm/src/EntityManager.php -> initializeObject (line 566)
  1. return $this->proxyFactory;
  2. }
  3. public function initializeObject(object $obj): void
  4. {
  5. $this->unitOfWork->initializeObject($obj);
  6. }
  7. /**
  8. * {@inheritDoc}
  9. */
  1. if (!$this->om->contains($object)) {
  2. 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)));
  3. }
  4. $this->om->initializeObject($object);
  5. $idValue = current($this->classMetadata->getIdentifierValues($object));
  6. if ($this->associationIdReader) {
  7. $idValue = $this->associationIdReader->getIdValue($idValue);
  1. return [];
  2. }
  3. if ($value) {
  4. // if a value callback exists, use it
  5. return array_map(fn ($item) => (string) $value($item), $choices);
  6. }
  7. return $this->doLoadValuesForChoices($choices);
  8. }
AbstractChoiceLoader->{closure:Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader::loadValuesForChoices():49}()
  1. return [];
  2. }
  3. if ($value) {
  4. // if a value callback exists, use it
  5. return array_map(fn ($item) => (string) $value($item), $choices);
  6. }
  7. return $this->doLoadValuesForChoices($choices);
  8. }
in vendor/symfony/form/ChoiceList/LazyChoiceList.php -> loadValuesForChoices (line 81)
  1. return $this->loader->loadChoicesForValues($values, $this->value);
  2. }
  3. public function getValuesForChoices(array $choices): array
  4. {
  5. return $this->loader->loadValuesForChoices($choices, $this->value);
  6. }
  7. }
  1. ) {
  2. }
  3. public function transform(mixed $choice): mixed
  4. {
  5. return (string) current($this->choiceList->getValuesForChoices([$choice]));
  6. }
  7. public function reverseTransform(mixed $value): mixed
  8. {
  9. if (null !== $value && !\is_string($value)) {
in vendor/symfony/form/Form.php -> transform (line 984)
  1. return null === $value || \is_scalar($value) ? (string) $value : $value;
  2. }
  3. try {
  4. foreach ($transformers as $transformer) {
  5. $value = $transformer->transform($value);
  6. }
  7. } catch (TransformationFailedException $exception) {
  8. throw new TransformationFailedException(\sprintf('Unable to transform value for property path "%s": ', $this->getPropertyPath()).$exception->getMessage(), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
  9. }
in vendor/symfony/form/Form.php -> normToView (line 299)
  1. }
  2. // Synchronize representations - must not change the content!
  3. // Transformation exceptions are not caught on initialization
  4. $normData = $this->modelToNorm($modelData);
  5. $viewData = $this->normToView($normData);
  6. // Validate if view data matches data class (unless empty)
  7. if (!FormUtil::isEmpty($viewData)) {
  8. $dataClass = $this->config->getDataClass();
  1. foreach ($forms as $form) {
  2. $config = $form->getConfig();
  3. if (!$empty && $config->getMapped() && $this->dataAccessor->isReadable($data, $form)) {
  4. $form->setData($this->dataAccessor->getValue($data, $form));
  5. } else {
  6. $form->setData($config->getData());
  7. }
  8. }
  9. }
in vendor/symfony/form/Form.php -> mapDataToForms (line 321)
  1. $this->lockSetData = false;
  2. // Compound forms don't need to invoke this method if they don't have children
  3. if (\count($this->children) > 0) {
  4. // Update child forms from the data (unless their config data is locked)
  5. $this->config->getDataMapper()->mapDataToForms($viewData, new \RecursiveIteratorIterator(new InheritDataAwareIterator($this->children)));
  6. }
  7. if ($dispatcher->hasListeners(FormEvents::POST_SET_DATA)) {
  8. $event = new PostSetDataEvent($this, $modelData);
  9. $dispatcher->dispatch($event, FormEvents::POST_SET_DATA);
in vendor/symfony/form/Form.php -> setData (line 410)
  1. // Guarantee that the *_SET_DATA events have been triggered once the
  2. // form is initialized. This makes sure that dynamically added or
  3. // removed fields are already visible after initialization.
  4. if (!$this->defaultDataSet) {
  5. $this->setData($this->config->getData());
  6. }
  7. return $this;
  8. }
in vendor/symfony/form/FormBuilder.php -> initialize (line 171)
  1. $form->add($child->setAutoInitialize(false)->getForm());
  2. }
  3. if ($this->getAutoInitialize()) {
  4. // Automatically initialize the form if it is configured so
  5. $form->initialize();
  6. }
  7. return $form;
  8. }
  1. /**
  2. * @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
  3. */
  4. public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface
  5. {
  6. return $this->createBuilder($type, $data, $options)->getForm();
  7. }
  8. /**
  9. * @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
  10. */
  1. *
  2. * @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
  3. */
  4. protected function createForm(string $type, mixed $data = null, array $options = []): FormInterface
  5. {
  6. return $this->container->get('form.factory')->create($type, $data, $options);
  7. }
  8. /**
  9. * Creates and returns a form builder instance.
  10. */
AbstractController->createForm() in src/Controller/LivraisonController.php (line 59)
  1. }
  2. #[Route('/{id}/edit', name: 'app_livraison_edit', methods: ['GET', 'POST'])]
  3. public function edit(Request $request, Livraison $livraison, EntityManagerInterface $entityManager): Response
  4. {
  5. $form = $this->createForm(LivraisonType::class, $livraison);
  6. $form->handleRequest($request);
  7. if ($form->isSubmitted() && $form->isValid()) {
  8. $entityManager->flush();
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/lib/frankenphp/thaon/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

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 ».

  1. } else {
  2. $code = $exception->getCode();
  3. $sqlState = null;
  4. }
  5. return new self($exception->getMessage(), $sqlState, $code, $exception);
  6. }
  7. }
  1. public function execute(): Result
  2. {
  3. try {
  4. $this->stmt->execute();
  5. } catch (PDOException $exception) {
  6. throw Exception::new($exception);
  7. }
  8. return new Result($this->stmt);
  9. }
  1. $this->wrappedStatement->bindValue($param, $value, $type);
  2. }
  3. public function execute(): Result
  4. {
  5. return $this->wrappedStatement->execute();
  6. }
  7. }
  1. 'sql' => $this->sql,
  2. 'params' => $this->params,
  3. 'types' => $this->types,
  4. ]);
  5. return parent::execute();
  6. }
  7. }
  1. $this->wrappedStatement->bindValue($param, $value, $type);
  2. }
  3. public function execute(): Result
  4. {
  5. return $this->wrappedStatement->execute();
  6. }
  7. }
  1. $this->stopwatch?->start('doctrine', 'doctrine');
  2. $query->start();
  3. try {
  4. return parent::execute();
  5. } finally {
  6. $query->stop();
  7. $this->stopwatch?->stop('doctrine');
  8. }
  9. }
  1. $stmt = $connection->prepare($sql);
  2. $this->bindParameters($stmt, $params, $types);
  3. $result = $stmt->execute();
  4. } else {
  5. $result = $connection->query($sql);
  6. }
  7. return new Result($result, $this);
  1. ): object|null {
  2. $this->switchPersisterContext(null, $limit);
  3. $sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
  4. [$params, $types] = $this->expandParameters($criteria);
  5. $stmt = $this->conn->executeQuery($sql, $params, $types);
  6. if ($entity !== null) {
  7. $hints[Query::HINT_REFRESH] = true;
  8. $hints[Query::HINT_REFRESH_ENTITY] = $entity;
  9. }
  1. /**
  2. * {@inheritDoc}
  3. */
  4. public function loadById(array $identifier, object|null $entity = null): object|null
  5. {
  6. return $this->load($identifier, $entity);
  7. }
  8. /**
  9. * {@inheritDoc}
  10. */
  1. $identifier,
  2. $entityPersister,
  3. $identifierFlattener,
  4. $classMetadata,
  5. ): void {
  6. $original = $entityPersister->loadById($identifier, $object);
  7. if ($original === null) {
  8. throw EntityNotFoundException::fromClassNameAndIdentifier(
  9. $classMetadata->getName(),
  10. $identifierFlattener->flattenIdentifier($classMetadata, $identifier),
  11. );
ProxyFactory::{closure:Doctrine\ORM\Proxy\ProxyFactory::getProxy():217}()
in vendor/doctrine/orm/src/UnitOfWork.php -> initializeLazyObject (line 3065)
  1. return;
  2. }
  3. if ($this->em->getConfiguration()->isNativeLazyObjectsEnabled()) {
  4. $reflection = $this->em->getClassMetadata($obj::class)->getReflectionClass();
  5. $reflection->initializeLazyObject($obj);
  6. }
  7. }
  8. /** Tests if a value is an uninitialized entity. */
  9. public function isUninitializedObject(mixed $obj): bool
in vendor/doctrine/orm/src/EntityManager.php -> initializeObject (line 566)
  1. return $this->proxyFactory;
  2. }
  3. public function initializeObject(object $obj): void
  4. {
  5. $this->unitOfWork->initializeObject($obj);
  6. }
  7. /**
  8. * {@inheritDoc}
  9. */
  1. if (!$this->om->contains($object)) {
  2. 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)));
  3. }
  4. $this->om->initializeObject($object);
  5. $idValue = current($this->classMetadata->getIdentifierValues($object));
  6. if ($this->associationIdReader) {
  7. $idValue = $this->associationIdReader->getIdValue($idValue);
  1. return [];
  2. }
  3. if ($value) {
  4. // if a value callback exists, use it
  5. return array_map(fn ($item) => (string) $value($item), $choices);
  6. }
  7. return $this->doLoadValuesForChoices($choices);
  8. }
AbstractChoiceLoader->{closure:Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader::loadValuesForChoices():49}()
  1. return [];
  2. }
  3. if ($value) {
  4. // if a value callback exists, use it
  5. return array_map(fn ($item) => (string) $value($item), $choices);
  6. }
  7. return $this->doLoadValuesForChoices($choices);
  8. }
in vendor/symfony/form/ChoiceList/LazyChoiceList.php -> loadValuesForChoices (line 81)
  1. return $this->loader->loadChoicesForValues($values, $this->value);
  2. }
  3. public function getValuesForChoices(array $choices): array
  4. {
  5. return $this->loader->loadValuesForChoices($choices, $this->value);
  6. }
  7. }
  1. ) {
  2. }
  3. public function transform(mixed $choice): mixed
  4. {
  5. return (string) current($this->choiceList->getValuesForChoices([$choice]));
  6. }
  7. public function reverseTransform(mixed $value): mixed
  8. {
  9. if (null !== $value && !\is_string($value)) {
in vendor/symfony/form/Form.php -> transform (line 984)
  1. return null === $value || \is_scalar($value) ? (string) $value : $value;
  2. }
  3. try {
  4. foreach ($transformers as $transformer) {
  5. $value = $transformer->transform($value);
  6. }
  7. } catch (TransformationFailedException $exception) {
  8. throw new TransformationFailedException(\sprintf('Unable to transform value for property path "%s": ', $this->getPropertyPath()).$exception->getMessage(), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
  9. }
in vendor/symfony/form/Form.php -> normToView (line 299)
  1. }
  2. // Synchronize representations - must not change the content!
  3. // Transformation exceptions are not caught on initialization
  4. $normData = $this->modelToNorm($modelData);
  5. $viewData = $this->normToView($normData);
  6. // Validate if view data matches data class (unless empty)
  7. if (!FormUtil::isEmpty($viewData)) {
  8. $dataClass = $this->config->getDataClass();
  1. foreach ($forms as $form) {
  2. $config = $form->getConfig();
  3. if (!$empty && $config->getMapped() && $this->dataAccessor->isReadable($data, $form)) {
  4. $form->setData($this->dataAccessor->getValue($data, $form));
  5. } else {
  6. $form->setData($config->getData());
  7. }
  8. }
  9. }
in vendor/symfony/form/Form.php -> mapDataToForms (line 321)
  1. $this->lockSetData = false;
  2. // Compound forms don't need to invoke this method if they don't have children
  3. if (\count($this->children) > 0) {
  4. // Update child forms from the data (unless their config data is locked)
  5. $this->config->getDataMapper()->mapDataToForms($viewData, new \RecursiveIteratorIterator(new InheritDataAwareIterator($this->children)));
  6. }
  7. if ($dispatcher->hasListeners(FormEvents::POST_SET_DATA)) {
  8. $event = new PostSetDataEvent($this, $modelData);
  9. $dispatcher->dispatch($event, FormEvents::POST_SET_DATA);
in vendor/symfony/form/Form.php -> setData (line 410)
  1. // Guarantee that the *_SET_DATA events have been triggered once the
  2. // form is initialized. This makes sure that dynamically added or
  3. // removed fields are already visible after initialization.
  4. if (!$this->defaultDataSet) {
  5. $this->setData($this->config->getData());
  6. }
  7. return $this;
  8. }
in vendor/symfony/form/FormBuilder.php -> initialize (line 171)
  1. $form->add($child->setAutoInitialize(false)->getForm());
  2. }
  3. if ($this->getAutoInitialize()) {
  4. // Automatically initialize the form if it is configured so
  5. $form->initialize();
  6. }
  7. return $form;
  8. }
  1. /**
  2. * @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
  3. */
  4. public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface
  5. {
  6. return $this->createBuilder($type, $data, $options)->getForm();
  7. }
  8. /**
  9. * @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
  10. */
  1. *
  2. * @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
  3. */
  4. protected function createForm(string $type, mixed $data = null, array $options = []): FormInterface
  5. {
  6. return $this->container->get('form.factory')->create($type, $data, $options);
  7. }
  8. /**
  9. * Creates and returns a form builder instance.
  10. */
AbstractController->createForm() in src/Controller/LivraisonController.php (line 59)
  1. }
  2. #[Route('/{id}/edit', name: 'app_livraison_edit', methods: ['GET', 'POST'])]
  3. public function edit(Request $request, Livraison $livraison, EntityManagerInterface $entityManager): Response
  4. {
  5. $form = $this->createForm(LivraisonType::class, $livraison);
  6. $form->handleRequest($request);
  7. if ($form->isSubmitted() && $form->isValid()) {
  8. $entityManager->flush();
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/lib/frankenphp/thaon/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

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 ».

  1. }
  2. public function execute(): Result
  3. {
  4. try {
  5. $this->stmt->execute();
  6. } catch (PDOException $exception) {
  7. throw Exception::new($exception);
  8. }
  9. return new Result($this->stmt);
  1. }
  2. public function execute(): Result
  3. {
  4. try {
  5. $this->stmt->execute();
  6. } catch (PDOException $exception) {
  7. throw Exception::new($exception);
  8. }
  9. return new Result($this->stmt);
  1. $this->wrappedStatement->bindValue($param, $value, $type);
  2. }
  3. public function execute(): Result
  4. {
  5. return $this->wrappedStatement->execute();
  6. }
  7. }
  1. 'sql' => $this->sql,
  2. 'params' => $this->params,
  3. 'types' => $this->types,
  4. ]);
  5. return parent::execute();
  6. }
  7. }
  1. $this->wrappedStatement->bindValue($param, $value, $type);
  2. }
  3. public function execute(): Result
  4. {
  5. return $this->wrappedStatement->execute();
  6. }
  7. }
  1. $this->stopwatch?->start('doctrine', 'doctrine');
  2. $query->start();
  3. try {
  4. return parent::execute();
  5. } finally {
  6. $query->stop();
  7. $this->stopwatch?->stop('doctrine');
  8. }
  9. }
  1. $stmt = $connection->prepare($sql);
  2. $this->bindParameters($stmt, $params, $types);
  3. $result = $stmt->execute();
  4. } else {
  5. $result = $connection->query($sql);
  6. }
  7. return new Result($result, $this);
  1. ): object|null {
  2. $this->switchPersisterContext(null, $limit);
  3. $sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
  4. [$params, $types] = $this->expandParameters($criteria);
  5. $stmt = $this->conn->executeQuery($sql, $params, $types);
  6. if ($entity !== null) {
  7. $hints[Query::HINT_REFRESH] = true;
  8. $hints[Query::HINT_REFRESH_ENTITY] = $entity;
  9. }
  1. /**
  2. * {@inheritDoc}
  3. */
  4. public function loadById(array $identifier, object|null $entity = null): object|null
  5. {
  6. return $this->load($identifier, $entity);
  7. }
  8. /**
  9. * {@inheritDoc}
  10. */
  1. $identifier,
  2. $entityPersister,
  3. $identifierFlattener,
  4. $classMetadata,
  5. ): void {
  6. $original = $entityPersister->loadById($identifier, $object);
  7. if ($original === null) {
  8. throw EntityNotFoundException::fromClassNameAndIdentifier(
  9. $classMetadata->getName(),
  10. $identifierFlattener->flattenIdentifier($classMetadata, $identifier),
  11. );
ProxyFactory::{closure:Doctrine\ORM\Proxy\ProxyFactory::getProxy():217}()
in vendor/doctrine/orm/src/UnitOfWork.php -> initializeLazyObject (line 3065)
  1. return;
  2. }
  3. if ($this->em->getConfiguration()->isNativeLazyObjectsEnabled()) {
  4. $reflection = $this->em->getClassMetadata($obj::class)->getReflectionClass();
  5. $reflection->initializeLazyObject($obj);
  6. }
  7. }
  8. /** Tests if a value is an uninitialized entity. */
  9. public function isUninitializedObject(mixed $obj): bool
in vendor/doctrine/orm/src/EntityManager.php -> initializeObject (line 566)
  1. return $this->proxyFactory;
  2. }
  3. public function initializeObject(object $obj): void
  4. {
  5. $this->unitOfWork->initializeObject($obj);
  6. }
  7. /**
  8. * {@inheritDoc}
  9. */
  1. if (!$this->om->contains($object)) {
  2. 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)));
  3. }
  4. $this->om->initializeObject($object);
  5. $idValue = current($this->classMetadata->getIdentifierValues($object));
  6. if ($this->associationIdReader) {
  7. $idValue = $this->associationIdReader->getIdValue($idValue);
  1. return [];
  2. }
  3. if ($value) {
  4. // if a value callback exists, use it
  5. return array_map(fn ($item) => (string) $value($item), $choices);
  6. }
  7. return $this->doLoadValuesForChoices($choices);
  8. }
AbstractChoiceLoader->{closure:Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader::loadValuesForChoices():49}()
  1. return [];
  2. }
  3. if ($value) {
  4. // if a value callback exists, use it
  5. return array_map(fn ($item) => (string) $value($item), $choices);
  6. }
  7. return $this->doLoadValuesForChoices($choices);
  8. }
in vendor/symfony/form/ChoiceList/LazyChoiceList.php -> loadValuesForChoices (line 81)
  1. return $this->loader->loadChoicesForValues($values, $this->value);
  2. }
  3. public function getValuesForChoices(array $choices): array
  4. {
  5. return $this->loader->loadValuesForChoices($choices, $this->value);
  6. }
  7. }
  1. ) {
  2. }
  3. public function transform(mixed $choice): mixed
  4. {
  5. return (string) current($this->choiceList->getValuesForChoices([$choice]));
  6. }
  7. public function reverseTransform(mixed $value): mixed
  8. {
  9. if (null !== $value && !\is_string($value)) {
in vendor/symfony/form/Form.php -> transform (line 984)
  1. return null === $value || \is_scalar($value) ? (string) $value : $value;
  2. }
  3. try {
  4. foreach ($transformers as $transformer) {
  5. $value = $transformer->transform($value);
  6. }
  7. } catch (TransformationFailedException $exception) {
  8. throw new TransformationFailedException(\sprintf('Unable to transform value for property path "%s": ', $this->getPropertyPath()).$exception->getMessage(), $exception->getCode(), $exception, $exception->getInvalidMessage(), $exception->getInvalidMessageParameters());
  9. }
in vendor/symfony/form/Form.php -> normToView (line 299)
  1. }
  2. // Synchronize representations - must not change the content!
  3. // Transformation exceptions are not caught on initialization
  4. $normData = $this->modelToNorm($modelData);
  5. $viewData = $this->normToView($normData);
  6. // Validate if view data matches data class (unless empty)
  7. if (!FormUtil::isEmpty($viewData)) {
  8. $dataClass = $this->config->getDataClass();
  1. foreach ($forms as $form) {
  2. $config = $form->getConfig();
  3. if (!$empty && $config->getMapped() && $this->dataAccessor->isReadable($data, $form)) {
  4. $form->setData($this->dataAccessor->getValue($data, $form));
  5. } else {
  6. $form->setData($config->getData());
  7. }
  8. }
  9. }
in vendor/symfony/form/Form.php -> mapDataToForms (line 321)
  1. $this->lockSetData = false;
  2. // Compound forms don't need to invoke this method if they don't have children
  3. if (\count($this->children) > 0) {
  4. // Update child forms from the data (unless their config data is locked)
  5. $this->config->getDataMapper()->mapDataToForms($viewData, new \RecursiveIteratorIterator(new InheritDataAwareIterator($this->children)));
  6. }
  7. if ($dispatcher->hasListeners(FormEvents::POST_SET_DATA)) {
  8. $event = new PostSetDataEvent($this, $modelData);
  9. $dispatcher->dispatch($event, FormEvents::POST_SET_DATA);
in vendor/symfony/form/Form.php -> setData (line 410)
  1. // Guarantee that the *_SET_DATA events have been triggered once the
  2. // form is initialized. This makes sure that dynamically added or
  3. // removed fields are already visible after initialization.
  4. if (!$this->defaultDataSet) {
  5. $this->setData($this->config->getData());
  6. }
  7. return $this;
  8. }
in vendor/symfony/form/FormBuilder.php -> initialize (line 171)
  1. $form->add($child->setAutoInitialize(false)->getForm());
  2. }
  3. if ($this->getAutoInitialize()) {
  4. // Automatically initialize the form if it is configured so
  5. $form->initialize();
  6. }
  7. return $form;
  8. }
  1. /**
  2. * @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
  3. */
  4. public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface
  5. {
  6. return $this->createBuilder($type, $data, $options)->getForm();
  7. }
  8. /**
  9. * @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
  10. */
  1. *
  2. * @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
  3. */
  4. protected function createForm(string $type, mixed $data = null, array $options = []): FormInterface
  5. {
  6. return $this->container->get('form.factory')->create($type, $data, $options);
  7. }
  8. /**
  9. * Creates and returns a form builder instance.
  10. */
AbstractController->createForm() in src/Controller/LivraisonController.php (line 59)
  1. }
  2. #[Route('/{id}/edit', name: 'app_livraison_edit', methods: ['GET', 'POST'])]
  3. public function edit(Request $request, Livraison $livraison, EntityManagerInterface $entityManager): Response
  4. {
  5. $form = $this->createForm(LivraisonType::class, $livraison);
  6. $form->handleRequest($request);
  7. if ($form->isSubmitted() && $form->isValid()) {
  8. $entityManager->flush();
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/lib/frankenphp/thaon/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 19:17:32 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "b9311e"
    },
    "request_uri": "http://cocagne.neotech.fr/_profiler/b9311e",
    "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)