original_string: protected function clearEntireListParentHierarchy()
      {
          $separator = $this->getListParentSeparator();
  
          foreach ($this->listParents as $parent) {
  
              if ( ! $parent || is_string($parent) && false === strpos($parent, $separator)) {
                  break;
              }
  
              // Unset parent at this level
              $context = $this->getModelSessionKey(
                  $this->getModuleHelper()->modelSlug(get_class($parent->model))
              );
  
              $this->setListParentDataInMemory(null, null, $parent->relation . $separator . $parent->key, $context);
          }
  
          $this->setListParentDataInMemory(null, null, $this->globalSubContext());
  
          $this->listParentRelation  = null;
          $this->listParentRecordKey = null;
          $this->listParents         = [];
      }
code: protected function clearEntireListParentHierarchy()
      {
          $separator = $this->getListParentSeparator();
  
          foreach ($this->listParents as $parent) {
  
              if ( ! $parent || is_string($parent) && false === strpos($parent, $separator)) {
                  break;
              }
  
              // Unset parent at this level
              $context = $this->getModelSessionKey(
                  $this->getModuleHelper()->modelSlug(get_class($parent->model))
              );
  
              $this->setListParentDataInMemory(null, null, $parent->relation . $separator . $parent->key, $context);
          }
  
          $this->setListParentDataInMemory(null, null, $this->globalSubContext());
  
          $this->listParentRelation  = null;
          $this->listParentRecordKey = null;
          $this->listParents         = [];
      }
code_tokens: protected function clearEntireListParentHierarchy ( ) { $ separator = $ this -> getListParentSeparator ( ) ; foreach ( $ this -> listParents as $ parent ) { if ( ! $ parent || is_string ( $ parent ) && false === strpos ( $ parent , $ separator ) ) { break ; } // Unset parent at this level $ context = $ this -> getModelSessionKey ( $ this -> getModuleHelper ( ) -> modelSlug ( get_class ( $ parent -> model ) ) ) ; $ this -> setListParentDataInMemory ( null , null , $ parent -> relation . $ separator . $ parent -> key , $ context ) ; } $ this -> setListParentDataInMemory ( null , null , $ this -> globalSubContext ( ) ) ; $ this -> listParentRelation = null ; $ this -> listParentRecordKey = null ; $ this -> listParents = [ ] ; }
docstring: Clears list parent chain as currently memorized.
docstring_tokens: Clears list parent chain as currently memorized .