$categoryArray = Category::find()->select(['id', 'parent_id AS parent', 'name AS text'])->all();
$categoryArray = Category::find()->select(['id', 'parent_id AS parent', 'name AS text'])->all();
[{id: id, parent: parent_id, text: name}]
, но возвращает только [{id: id}]