Hello out there,
I am using the TranslateableBehavior by dosamigos.
The normal approach to get the local_name (which is a translation) would be this:
$model = Field::findOne(['field_id' => 1234]);
$field_name = $model->local_name;
But I would like to avoid using ActiveRecord as I repeat above lines quite a lot on my site. So the question is can I use asArray somehow? I mean, similar to use “->joinWith” to get data from a relation.
Is this possible to achieve?
Thanks for the help,
gb5256