original_string: protected function applyListParentContext()
      {
          $parents = $this->getModelInformation()->list->parents;
  
          if (empty($parents)) {
              return $this;
          }
  
          if ($this->listParentRelation) {
              $contextKey = $this->listParentRelation . $this->getListParentSeparator() . $this->listParentRecordKey;
          } else {
              $contextKey = null;
          }
  
          $this->getListMemory()->setSubContext($contextKey);
  
          return $this;
      }
code: protected function applyListParentContext()
      {
          $parents = $this->getModelInformation()->list->parents;
  
          if (empty($parents)) {
              return $this;
          }
  
          if ($this->listParentRelation) {
              $contextKey = $this->listParentRelation . $this->getListParentSeparator() . $this->listParentRecordKey;
          } else {
              $contextKey = null;
          }
  
          $this->getListMemory()->setSubContext($contextKey);
  
          return $this;
      }
code_tokens: protected function applyListParentContext ( ) { $ parents = $ this -> getModelInformation ( ) -> list -> parents ; if ( empty ( $ parents ) ) { return $ this ; } if ( $ this -> listParentRelation ) { $ contextKey = $ this -> listParentRelation . $ this -> getListParentSeparator ( ) . $ this -> listParentRecordKey ; } else { $ contextKey = null ; } $ this -> getListMemory ( ) -> setSubContext ( $ contextKey ) ; return $ this ; }
docstring: Applies the context for the current list parent scope.
  
  Must be called before other list memory is accessed, since it affects the sub-context of the memory.
  
  @return $this
docstring_tokens: Applies the context for the current list parent scope .