src/Franzose/ClosureTable/Models/Entity.php
public function setParentIdAttribute($value)
    {
        if ($this->parent_id === $value) {
            return;
        }
        $this->old_parent_id = $this->parent_id;
        $this->attributes[$this->getParentIdColumn()] = $value;
    }
public function setParentIdAttribute($value)
    {
        if ($this->parent_id === $value) {
            return;
        }
        $this->old_parent_id = $this->parent_id;
        $this->attributes[$this->getParentIdColumn()] = $value;
    }
public function setParentIdAttribute ( $ value ) { if ( $ this -> parent_id === $ value ) { return ; } $ this -> old_parent_id = $ this -> parent_id ; $ this -> attributes [ $ this -> getParentIdColumn ( ) ] = $ value ; }
Sets new parent id and caches the old one.

@param int $value
Sets new parent id and caches the old one .