public function setParent(ElasticsearchModel $parent) { $this->_parent = $parent; $this->setParentId($parent->getId()); }