src/Model/Comment.php
public function updateDepth()
    {
        $parent = $this->ParentComment();
        if ($parent && $parent->exists()) {
            $parent->updateDepth();
            $this->Depth = $parent->Depth + 1;
        } else {
            $this->Depth = 1;
        }
    }
public function updateDepth()
    {
        $parent = $this->ParentComment();
        if ($parent && $parent->exists()) {
            $parent->updateDepth();
            $this->Depth = $parent->Depth + 1;
        } else {
            $this->Depth = 1;
        }
    }
public function updateDepth ( ) { $ parent = $ this -> ParentComment ( ) ; if ( $ parent && $ parent -> exists ( ) ) { $ parent -> updateDepth ( ) ; $ this -> Depth = $ parent -> Depth + 1 ; } else { $ this -> Depth = 1 ; } }
Refresh of this comment in the hierarchy
Refresh of this comment in the hierarchy