Skip to content

ActiveRecord with ->asArray not working #146

Open
@strtob

Description

@strtob

Hi,

What a great extensions, thanks a lot!

fyi

this works:

\yii\helpers\ArrayHelper::map(\app\models\BasisAssetType::find()->orderBy('id')->all(), 'id', 'name')

this not:

\yii\helpers\ArrayHelper::map(\app\models\BasisAssetType::find()->orderBy('id')->asArray()->all(), 'id', 'name')

No translation happens - I use the behaviour...

BR,
Tobi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions