Answer the question
In order to leave comments, you need to log in
How to get dynamic properties when outputting from ActiveRecord as an array?
Hello!
The ActiveRecord model has a getValueText(){ ... } getter that formats the Value as I need it.
If the data is converted to an array (when requested) ->asArray, valueText does not get into it. Is it possible to implement this somehow?
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question