public function mapTree( $modelList )
	{
		$tree = $modelList instanceof Arrayable ? $modelList->toArray() : $modelList;

		$affectedKeys = [];

		$result = $this->mapTreeRecursive( $tree, $this->model->getKey(), $affectedKeys );

		if ( $result && count( $affectedKeys ) > 0 )
			$this->deleteUnaffected( $affectedKeys );

		return $result;
	}
public function mapTree( $modelList )
	{
		$tree = $modelList instanceof Arrayable ? $modelList->toArray() : $modelList;

		$affectedKeys = [];

		$result = $this->mapTreeRecursive( $tree, $this->model->getKey(), $affectedKeys );

		if ( $result && count( $affectedKeys ) > 0 )
			$this->deleteUnaffected( $affectedKeys );

		return $result;
	}
public function mapTree ( $ modelList ) { $ tree = $ modelList instanceof Arrayable ? $ modelList -> toArray ( ) : $ modelList ; $ affectedKeys = [ ] ; $ result = $ this -> mapTreeRecursive ( $ tree , $ this -> model -> getKey ( ) , $ affectedKeys ) ; if ( $ result && count ( $ affectedKeys ) > 0 ) $ this -> deleteUnaffected ( $ affectedKeys ) ; return $ result ; }
Maps a tree structure into the database without unguarding nor wrapping
inside a transaction.

@param   array|Arrayable
@return  boolean
Maps a tree structure into the database without unguarding nor wrapping inside a transaction .