lib/components/dataInterface/connectors/generic/DataItem.php
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;
    }
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;
    }
Get foreign parents.

@return [[@doctodo return_type:getForeignParents]] [[@doctodo return_description:getForeignParents]]