symfony: [SymfonyForm] Updating to 4.4.9 crash with Unable to get a property on a non-object.

Symfony version(s) affected: 4.4.9

Description

I’m using a childAdmin with Sonata https://symfony.com/doc/master/bundles/SonataAdminBundle/reference/child_admin.html

When I’m on a playList/idPlaylist/video/create url and try to submit the form to create a video and add it to the playlist, I get Unable to get a property on a non-object..

Everything worked fined with symfony-form@4.4.8, but when I update to 4.4.9 I get an error.

Additional context
image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (17 by maintainers)

Commits related to this issue

Most upvoted comments

@xabbuh I just tried on the project I use for work. It does definitely fix the bug 😃

Can you try if #37103 fixes this?

It does on my demo. I will try tomorrow with the project I use for work, but I think you’ve found the solution 😃

@VincentLanglet Please do not spend too much time right now on the example application. I am looking into the ExpressionLanguage constraint you mentioned above to see if I can reproduce it without all the rest.

If you still need one, I’ve made https://github.com/VincentLanglet/demo/pull/1 @xabbuh