Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit0497b38

Browse files
committed
[Cookbook][Dynamic Form Modification] Fix sample code
1 parentbdc6c3f commit0497b38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎cookbook/form/dynamic_form_modification.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ the event listener might look like the following::
123123
// check if the Product object is "new"
124124
// If no data is passed to the form, the data is "null".
125125
// This should be considered a new "Product"
126-
if (!$product || null!== $product->getId()) {
126+
if (!$product || null=== $product->getId()) {
127127
$form->add('name', 'text');
128128
}
129129
});
@@ -207,7 +207,7 @@ class::
207207
$product = $event->getData();
208208
$form = $event->getForm();
209209

210-
if (!$product || null!== $product->getId()) {
210+
if (!$product || null=== $product->getId()) {
211211
$form->add('name', 'text');
212212
}
213213
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp