We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 143db2f commit 66c4d77Copy full SHA for 66c4d77
cookbook/form/dynamic_form_modification.rst
@@ -123,7 +123,7 @@ the event listener might look like the following::
123
// check if the Product object is "new"
124
// If no data is passed to the form, the data is "null".
125
// This should be considered a new "Product"
126
- if (!$product || null !== $product->getId()) {
+ if (!$product || null === $product->getId()) {
127
$form->add('name', 'text');
128
}
129
});
@@ -212,7 +212,7 @@ class::
212
$product = $event->getData();
213
$form = $event->getForm();
214
215
216
217
218
0 commit comments