protected function resolveNode( $model )
	{
		if ( $model instanceof NestedModel )
			return $model->reload();

		return $this->model->newNestedSetQuery()->find( $model );
	}
protected function resolveNode( $model )
	{
		if ( $model instanceof NestedModel )
			return $model->reload();

		return $this->model->newNestedSetQuery()->find( $model );
	}
protected function resolveNode ( $ model ) { if ( $ model instanceof NestedModel ) return $ model -> reload ( ) ; return $ this -> model -> newNestedSetQuery ( ) -> find ( $ model ) ; }
Resolves suplied node. Basically returns the node unchanged if
supplied parameter is an instance of NestedModel. Otherwise it will try
to find the node in the database.

@param   NestedModel|int
@return  NestedModel
Resolves suplied node . Basically returns the node unchanged if supplied parameter is an instance of NestedModel . Otherwise it will try to find the node in the database .