-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PropertyAccess] AccesorPrefix can, mayI ... #19542
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
Comments
@alborq it's not configurable, however you're free to register your own property access depending on the task. |
Yesterday I was talking about this exact same feature with a Symfony developer who would have need this feature in his project. |
Somehow related to #19374 (comment) |
Not sure how possible it is to rename your property, but couldn't you just rename your accessor to |
@patrick-mcdougle sure i can, but you know like me, it's complex to find a good name of all properties, and in this case, we can find other good name like your exemple, but i thinks in specific case, link with job specification, we cant change name. I'm not locked with this issue, i just thinks, it can be a problem. (like migrate legacy) |
Thank you for this suggestion. |
Just a quick reminder to make a comment on this. If I don't hear anything I'll close this. |
Hey, I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen! |
Hello,
Prefix of accessor is actually [get|is|has|__get] but, accessor name depend of context. we cant personalize this list ?
In my case i have :
Entity: Printer
Property Definition : printer [true|false] can print into a photo paper.
PropertyName : printOnPhotoPaper
Method : canPrintOnPhotoPaper | setPrintOnPhotoPaper
I can't use it.
The text was updated successfully, but these errors were encountered: