-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Final tests and adjustments to allow mapping properties with hooks #11852
Conversation
symfony/var-exporter added support for hooked properties symfony/symfony#59965 |
Also prevent using property hooks with symfony/var-exporter for now. They did add support in a recent version, but my tests still failed with that, so not bothering with that for now.
return; | ||
} | ||
|
||
foreach ($class->propertyAccessors as $propertyAccessor) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ClassMetadataFactory:: validateRuntimeMetadata
is called to early, as it does not have access to any accessors yet. However this is in persistence and cannot be changed easily.
Here its available, however at the downside of being called in every request even when loaded from cache.
…ooked properties.
Thanks @beberlei ! |
Adding support for non-virtual property hooks now that native lazy objects are supported.
Property hooks are not supported when using symfony/var-exporter.