We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc6c3f commit 0497b38Copy full SHA for 0497b38
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
});
@@ -207,7 +207,7 @@ class::
207
$product = $event->getData();
208
$form = $event->getForm();
209
210
211
212
213
0 commit comments