public function destroy()
	{
		if (!parent::destroy())
		{
			return false;
		}

		foreach ($this->getDescendants() as $descendant)
		{
			$descendant->destroy();

			// We have to decrement our internal reference to right here
			// so that we ultimately resolve trailing below based on the
			// properly updated value, otherwise anything upstream of 
			// what we're destroying won't be properly updated
			$this->rgt -= 2;
		}

		// Reposition new values of displaced items
		$this->resolveTrailing($this->rgt, false);

		return true;
	}
public function destroy()
	{
		if (!parent::destroy())
		{
			return false;
		}

		foreach ($this->getDescendants() as $descendant)
		{
			$descendant->destroy();

			// We have to decrement our internal reference to right here
			// so that we ultimately resolve trailing below based on the
			// properly updated value, otherwise anything upstream of 
			// what we're destroying won't be properly updated
			$this->rgt -= 2;
		}

		// Reposition new values of displaced items
		$this->resolveTrailing($this->rgt, false);

		return true;
	}
public function destroy ( ) { if ( ! parent :: destroy ( ) ) { return false ; } foreach ( $ this -> getDescendants ( ) as $ descendant ) { $ descendant -> destroy ( ) ; // We have to decrement our internal reference to right here // so that we ultimately resolve trailing below based on the // properly updated value, otherwise anything upstream of  // what we're destroying won't be properly updated $ this -> rgt -= 2 ; } // Reposition new values of displaced items $ this -> resolveTrailing ( $ this -> rgt , false ) ; return true ; }
Deletes a model, rearranging subordinate nodes as appropriate

@return  bool
@since   2.1.0
Deletes a model rearranging subordinate nodes as appropriate