/** * Get cached tree structure of category objects * * @return array */ public function getTaxonomys() { return $this->owner->hasMany(Taxonomy::className(), ['taxonomy_id' => 'taxonomy_id'])->via("taxonomyIndex"); }