/**
  * @inheritdoc
  */
 public static function getChildren($parentID, $vid)
 {
     $rows = static::findHierarchy($vid);
     $hierarchy = static::indexByParent($rows);
     $result = [];
     static::buildIDsRecursive($parentID, $hierarchy, $result);
     if (empty($result)) {
         return [];
     }
     $query = (new Query())->from(TaxonomyTerm::tableName())->where(['id' => array_keys($result)]);
     $terms = [];
     foreach ($query->all() as $row) {
         $terms[$row['id']] = static::populateItem($row);
     }
     return $terms;
 }