code: public function setParent(ElasticsearchModel $parent)
      {
          $this->_parent = $parent;
          $this->setParentId($parent->getId());
      }
docs: Set parent document.
  
  @param ElasticsearchModel $parent