code: 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);
      }
docs: Get relationship.
  
  @return [[@doctodo return_type:getRelationship]] [[@doctodo return_description:getRelationship]]