-
Notifications
You must be signed in to change notification settings - Fork 112
Add ReadWritePropertiesExtension for Gedmo annotations/attributes #361
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
Add ReadWritePropertiesExtension for Gedmo annotations/attributes #361
Conversation
e37b23f to
5057e05
Compare
The failing php 8.2 checks don't seem to be related to my change
One more idea - if the class isn't an entity, the extension should return false even if the annotations are present. Please implement this with a test.
Please use ObjectMetadataResolver::isTransient() for this.
665f80f to
e725541
Compare
@ondrejmirtes I've implemented the requested changes, thanks for the suggestions!
e725541 to
5afea15
Compare
@ondrejmirtes are there any other changes needed here?
I like this, thank you :)
Uh oh!
There was an error while loading. Please reload this page.
Gedmo annotations (attributes) are used by gedmo listeners to automatically write data to properties and some of the properties are only used by gedmo internally. This ReadWritePropertiesExtension solves the unused property errors for these cases.
Fixes #231
Related to phpstan/phpstan#7758