public function setFetchDepth($fetchDepth = null)
    {
        if (!$this->useFetchDepth) {
            return 0;
        }

        $oldFetchDepth = $this->session->getSessionOption($this->useFetchDepth);

        if (isset($fetchDepth)) {
            $this->session->setSessionOption($this->useFetchDepth, $fetchDepth);
        }

        return $oldFetchDepth;
    }
public function setFetchDepth($fetchDepth = null)
    {
        if (!$this->useFetchDepth) {
            return 0;
        }

        $oldFetchDepth = $this->session->getSessionOption($this->useFetchDepth);

        if (isset($fetchDepth)) {
            $this->session->setSessionOption($this->useFetchDepth, $fetchDepth);
        }

        return $oldFetchDepth;
    }
public function setFetchDepth ( $ fetchDepth = null ) { if ( ! $ this -> useFetchDepth ) { return 0 ; } $ oldFetchDepth = $ this -> session -> getSessionOption ( $ this -> useFetchDepth ) ; if ( isset ( $ fetchDepth ) ) { $ this -> session -> setSessionOption ( $ this -> useFetchDepth , $ fetchDepth ) ; } return $ oldFetchDepth ; }
Sets the fetch depth on the session if the PHPCR session instance supports it
and returns the previous fetch depth value.

@param int|null $fetchDepth

@return int previous fetch depth value
Sets the fetch depth on the session if the PHPCR session instance supports it and returns the previous fetch depth value .