Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d1806e

Browse filesBrowse files
committed
Fix by_reference deprecated FormType::class
1 parent f398b03 commit 5d1806e
Copy full SHA for 5d1806e

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎reference/forms/types/options/by_reference.rst.inc

Copy file name to clipboardExpand all lines: reference/forms/types/options/by_reference.rst.inc
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ To explain this further, here's a simple example::
1212

1313
use Symfony\Component\Form\Extension\Core\Type\TextType;
1414
use Symfony\Component\Form\Extension\Core\Type\EmailType;
15+
use Symfony\Component\Form\Extension\Core\Type\FormType;
1516
// ...
1617

1718
$builder = $this->createFormBuilder($article);
1819
$builder
1920
->add('title', TextType::class)
2021
->add(
21-
$builder->create('author', 'form', array('by_reference' => ?))
22+
$builder->create('author', FormType::class, array('by_reference' => ?))
2223
->add('name', TextType::class)
2324
->add('email', EmailType::class)
2425
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.