From bf326a782a134b150f75666d7b59ea028590eeb4 Mon Sep 17 00:00:00 2001 From: Baptiste Bouchereau Date: Wed, 23 Mar 2022 21:23:38 -0700 Subject: [PATCH] Use all() instead of get() to retrieve non scalar values from the input bag --- Resources/doc/basics.md | 2 +- Resources/doc/working-with-other-bundles.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/doc/basics.md b/Resources/doc/basics.md index fea51d3..9fb1df4 100644 --- a/Resources/doc/basics.md +++ b/Resources/doc/basics.md @@ -92,7 +92,7 @@ class DefaultController extends Controller if ($request->query->has($form->getName())) { // manually bind values from the request - $form->submit($request->query->get($form->getName())); + $form->submit($request->query->all($form->getName())); // initialize a query builder $filterBuilder = $this->get('doctrine.orm.entity_manager') diff --git a/Resources/doc/working-with-other-bundles.md b/Resources/doc/working-with-other-bundles.md index 5358c90..7a65287 100644 --- a/Resources/doc/working-with-other-bundles.md +++ b/Resources/doc/working-with-other-bundles.md @@ -28,7 +28,7 @@ class DefaultController extends Controller if ($request->query->has($form->getName())) { // manually bind values from the request - $form->submit($request->query->get($form->getName())); + $form->submit($request->query->all($form->getName())); // build the query from the given form object $this->get('lexik_form_filter.query_builder_updater')->addFilterConditions($form, $filterBuilder);