Skip to content

Commit 94f4bd6

Browse files
committed
Merge pull request #1434 from fixe/patch-2
Updated order of createNamed parameters
2 parents a6f8182 + d30b6e5 commit 94f4bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/form/dynamic_form_generation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ might look like the following::
128128

129129
// check if the product object is "new"
130130
if (!$data->getId()) {
131-
$form->add($this->factory->createNamed('text', 'name'));
131+
$form->add($this->factory->createNamed('name', 'text'));
132132
}
133133
}
134134
}

0 commit comments

Comments
 (0)