/**
  * ancestors setter
  *
  * @param ConfigEntity $config config instance
  * @return ConfigEntity
  */
 private function setAncestors(ConfigEntity $config)
 {
     $ancestors = $this->repo->fetchParent($config->siteKey, $config->name);
     $ancestors = $this->sort($ancestors, 'desc');
     foreach ($ancestors as $ancestor) {
         $this->bindClosure($ancestor);
         $config->setParent($ancestor);
     }
     return $config;
 }
 /**
  * search ancestors getter
  *
  * @param string $siteKey site key
  * @param string $name    the name
  * @return array
  */
 public function fetchParent($siteKey, $name)
 {
     return $this->repo->fetchParent($siteKey, $name);
 }