Fix the initialization of lazy-ghost proxies with postLoad listeners#11544
Fix the initialization of lazy-ghost proxies with postLoad listeners#11544stof wants to merge 1 commit intodoctrine:2.19.xfrom
Conversation
PostLoad listeners might initialize values for transient properties, so the proxy should not skip initialization when using transient properties.
|
the failing tests are because the testsuite currently relies on unmapped public properties to track the usage of postLoad listeners. |
|
Would it make sense to do this only when there are postload listeners? |
|
I wanted to refactor those tests to store the initialization tracking externally, but I haven't done it yet (I kinda forgot this PR) |
|
/cc @priyadi |
|
There hasn't been any activity on this pull request in the past 90 days, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days. |
|
This pull request was closed due to inactivity. |
|
Is there perhaps an update for this issue? |
|
I haven't had the time to go back at it to update the tests. But I saw that #11853 had similar needs to update the tests, so I might be able to borrow from it. |
PostLoad listeners might initialize values for transient properties, so the proxy should not skip initialization when using transient properties.
Closes #11524