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);