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;
    }
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;
    }
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 ; }
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
Applies the context for the current list parent scope .