protected function _insertParent($entity) {
		extract($this->_config);
		$parent = $this->_getById($entity->$parent);
		if ($parent) {
			$r = $parent->$right;
			$this->_update($r, '+', 2, $this->_scope($entity));
			$entity->set([
				$left => $r,
				$right => $r + 1
			]);
		}
	}
protected function _insertParent($entity) {
		extract($this->_config);
		$parent = $this->_getById($entity->$parent);
		if ($parent) {
			$r = $parent->$right;
			$this->_update($r, '+', 2, $this->_scope($entity));
			$entity->set([
				$left => $r,
				$right => $r + 1
			]);
		}
	}
protected function _insertParent ( $ entity ) { extract ( $ this -> _config ) ; $ parent = $ this -> _getById ( $ entity -> $ parent ) ; if ( $ parent ) { $ r = $ parent -> $ right ; $ this -> _update ( $ r , '+' , 2 , $ this -> _scope ( $ entity ) ) ; $ entity -> set ( [ $ left => $ r , $ right => $ r + 1 ] ) ; } }
Insert a parent

inserts a node at given last position of parent set in $entity

@param object $entity
Insert a parent