Replace PostLoad event with property hook #12459
Unanswered
whataboutpereira
asked this question in
Support Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to replace a PostLoad event with a property hook, but it doesn't seem to work.
Calling
getFirstDayOfMonth()on the entity after it has been loaded from the database yieldsTyped property Entity::$firstDayOfMonth must not be accessed before initializationIs this something that should work or am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions