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         = [];
    }
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         = [];
    }
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 = [ ] ; }
Clears list parent chain as currently memorized.
Clears list parent chain as currently memorized .