code: public function getForeignParents()
      {
          $parents = [];
          foreach ($this->dataSource->foreignParentKeys as $keySet) {
              $model = $keySet['foreignModel'];
              unset($keySet['foreignModel']);
              if (!empty($this->foreignObject->{$keySet['foreignId']})) {
                  $keySet['foreignId'] = $this->foreignObject->{$keySet['foreignId']};
                  if (!isset($parents[$model])) {
                      $parents[$model] = [];
                  }
                  $parents[$model][] = $keySet;
              }
          }
  
          return $parents;
      }
docs: Get foreign parents.
  
  @return [[@doctodo return_type:getForeignParents]] [[@doctodo return_description:getForeignParents]]