-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
Exclude annotation not preventing attempt to find public methods when using AccessType #367
Comments
+1 |
1 similar comment
+1 |
Strate
added a commit
to Strate/serializer
that referenced
this issue
Feb 11, 2015
…ic methods when using AccessType Attempt to find getters and setters only if property included to serialization
still no fix? |
sword
pushed a commit
to lovecrafts/serializer
that referenced
this issue
May 1, 2015
…ic methods when using AccessType Attempt to find getters and setters only if property included to serialization
This was referenced Oct 30, 2015
PR #397 |
+1 |
goetas
added a commit
that referenced
this issue
Aug 3, 2016
#367 Exclude annotation not preventing attempt to find public methods when using AccessType
PR has been merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have discovered an issue where, if you set AccessType("public_method") on a class, Exclude annotations on that class's properties are ignored. Ex:
In this case, I get the error "There is neither a public getAcceptedStatuses method, nor a public isAcceptedStatuses method, nor a public hasAcceptedStatuses method in class Application\Model\RedOakPage. Please specify which public method should be used for retrieving the value of the property acceptedStatuses."
It would be my understanding that the more specific Exclude annotation on the property would override the class-level annotation of AccessType. If that isn't true, this isn't a defect, but it should be made clear on the docs for AccessType.
The text was updated successfully, but these errors were encountered: