From 0640f47b7d3fef09c16837add16287112d0133bd Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Wed, 7 Oct 2015 20:15:59 +0200 Subject: [PATCH] Fixed two typos --- cookbook/controller/upload_file.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/controller/upload_file.rst b/cookbook/controller/upload_file.rst index 19b2be6769a..087ae4d47ab 100644 --- a/cookbook/controller/upload_file.rst +++ b/cookbook/controller/upload_file.rst @@ -49,7 +49,7 @@ in the ``Product`` entity:: Note that the type of the ``brochure`` column is ``string`` instead of ``binary`` or ``blob`` because it just stores the PDF file name instead of the file contents. -Then, add a new ``brochure`` field to the form that manage the ``Product`` entity:: +Then, add a new ``brochure`` field to the form that manages the ``Product`` entity:: // src/AppBundle/Form/ProductType.php namespace AppBundle\Form; @@ -133,7 +133,7 @@ Finally, you need to update the code of the controller that handles the form:: // Update the 'brochure' property to store the PDF file name // instead of its contents - $product->setBrochure($filename); + $product->setBrochure($fileName); // ... persist the $product variable or any other work