Ability to define custom computed properties on models #844
Labels
enhancement
A feature that exists, works as intended but needs to be improved
feature request
A feature that does not yet exist but will be a good addition to the library
Describe the feature as you'd like to see it
Define computed property on Models
What do we currently have to do now?
Additional context
This is just an example but it would be nice if we could define custom properties on model and also select these
property dynamically using the select method. I've tried using __cast_map__ I could not manage to get the
desired result. It is not selectable and the value returned from
get
method ofCaster
class also did not reflect in result.Demo implementation of __cast_map__:
The text was updated successfully, but these errors were encountered: