diff --git a/Resources/doc/basics.md b/Resources/doc/basics.md index b97a3a8..51237c9 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 fea244c..07e415e 100644 --- a/Resources/doc/working-with-other-bundles.md +++ b/Resources/doc/working-with-other-bundles.md @@ -31,7 +31,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->filterBuilderUpdater->addFilterConditions($form, $filterBuilder);