Getter annotation #1153
michalcharvat
started this conversation in
Ideas
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.
-
From my point of view it is pretty annoying if you would like to implement get method to entity model and your method is translated to API. Also in that case you get an error "Models are fetched read only". GO 6.7 added compatibility with PHP 8.1 so since this version this could be easily solved with attributes. For 6.6 there is an option use doctrine/annotations package which allows you parse method annotations. @mschering please think about it. Currently there is exception for static methods only. However if you have to call your method getAttachments it is automatically parsed whether it is desirable or not. Maybe you can change the default logic so getters-setter won't be automatically added to API until you specify there attribute [api] or so..
Beta Was this translation helpful? Give feedback.
All reactions