Skip to content

Commit edff52f

Browse files
committed
minor #5766 Fixed two typos (ThomasLandauer)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5766). Discussion ---------- Fixed two typos Commits ------- 4d4e72c Fixed two typos
2 parents 1462b8a + 4d4e72c commit edff52f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/controller/upload_file.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ in the ``Product`` entity::
4949
Note that the type of the ``brochure`` column is ``string`` instead of ``binary``
5050
or ``blob`` because it just stores the PDF file name instead of the file contents.
5151

52-
Then, add a new ``brochure`` field to the form that manage the ``Product`` entity::
52+
Then, add a new ``brochure`` field to the form that manages the ``Product`` entity::
5353

5454
// src/AppBundle/Form/ProductType.php
5555
namespace AppBundle\Form;
@@ -133,7 +133,7 @@ Finally, you need to update the code of the controller that handles the form::
133133

134134
// Update the 'brochure' property to store the PDF file name
135135
// instead of its contents
136-
$product->setBrochure($filename);
136+
$product->setBrochure($fileName);
137137

138138
// ... persist the $product variable or any other work
139139

0 commit comments

Comments
 (0)