-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
'Cannot access uninitialized non-nullable property' on symfony/var-exporter 6.3.9 #52839
New issue
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
Comments
This might have been solved by #52797. Can you please give it a try? (you might need to clear the cache explicitly before trying again) |
It has landed in 6.4.0 hasn't it? If so: nope, that didn't fix it. And yes, I've cleared the cache. |
In 6.4-dev |
@nicolas-grekas No, it didn't fix it. |
Could you please create a small app I could clone that reproduces the issue? |
I'll do! I've already found out that #52762 caused this issue. |
Can you double-check and confirm that neither 6.3.10 nor 6.4.1 did fix this issue? |
@stephanvierkant Did you have the chance to test it again? |
Yes, but it didn't help. (sorry, didn't find the time to create a reproduceer yet) |
Let's close here for now. We can still consider to reopen once we are able to reproduce it. |
I have tried to create a reproducer, but unfortunately, I was not successful. In a simple application, it works fine, so apparently there is something specific in my application that I have not been able to locate yet. I unfortunately cannot provide access to my application, but if someone is willing to help, I can temporarily share the code. Perhaps someone can assist in identifying where the problem might be. I'm using magic setters/getters in my entities, maybe this can cause the issue? And the relations (user->notifications) are LAZY. |
@xabbuh I think I've found it. I'll try to create a reproducer, but meanwhile let me give a simplified example of my use case: I've got an Item, Property and ItemProperty entity. So I've got a Car (item), colour/size/whatever (property) and a relationship: red car. Using magic method __set I'm calling |
Symfony version(s) affected
6.3.9, 6.4.0
Description
As of Symfony/var-exporter 6.3.9 I've got this error message on multiple places in my application:
It happens when I get an Organization from Doctrine.
My entity:
How to reproduce
I'll create a reproducer if necessary, but before I do I'd like to hear some feedback. Maybe it's a simple mistake I've made, or someone has some suggestions how to create a reproducer.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: