8000
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.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symfony version(s) affected: 5.0.9\5.1.0
Description
After this PR #36865 we have a BUG there are invalid ExecutionContext.getObject when using subforms
Example
class LoginType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $callback = function ($object, ExecutionContextInterface $context, $payload) { dump($context->getObject()->getName(), $context->getRoot()->getName()); }; $builder ->add('username', TextType::class, [ 'constraints' => new NotBlank(), ]) ->add('form2', LoginType2::class, [ 'constraints' => [ new Callback($callback) ] ]); ; } }
dump
LoginType.php on line 19: "login" LoginType.php on line 19: "login"
If revert changed dump
LoginType.php on line 19: "form2" LoginType.php on line 19: "login"
@xabbuh
The text was updated successfully, but these errors were encountered:
Same as #37072 and thus will be fixed by #37103?
Sorry, something went wrong.
yes. its working
Thank you for the confirmation. Let's close here then as we already have an open issue for it.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 5.0.9\5.1.0
Description
After this PR #36865 we have a BUG
there are invalid ExecutionContext.getObject when using subforms
Example
dump
If revert changed
dump
@xabbuh
The text was updated successfully, but these errors were encountered: