lib/models/Relation.php
public function getRelationship()
    {
        if (!isset($this->parentObject) || empty($this->parentObject->objectTypeItem)) {
            return false;
        }
        if (!isset($this->childObject) || empty($this->childObject->objectTypeItem)) {
            return false;
        }

        return Relationship::getOne($this->parentObject->objectTypeItem, $this->childObject->objectTypeItem);
    }
public function getRelationship()
    {
        if (!isset($this->parentObject) || empty($this->parentObject->objectTypeItem)) {
            return false;
        }
        if (!isset($this->childObject) || empty($this->childObject->objectTypeItem)) {
            return false;
        }

        return Relationship::getOne($this->parentObject->objectTypeItem, $this->childObject->objectTypeItem);
    }
Get relationship.

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