<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Nested set model</title>
	<atom:link href="http://blog.richardknop.com/2009/05/nested-set-model/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.richardknop.com/2009/05/nested-set-model/</link>
	<description>Zend Framework, PHP, Django, Python, SQL, MySQL, PostgreSQL, Oracle, PL/SQL, data model patterns, OOP, design patterns, JavaScript, jQuery, HTML, XHTML, CSS, XML, web services &#38; APIs, Security, E-commerce and much more</description>
	<lastBuildDate>Fri, 03 Feb 2012 23:50:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jaimin</title>
		<link>http://blog.richardknop.com/2009/05/nested-set-model/comment-page-1/#comment-758</link>
		<dc:creator>Jaimin</dc:creator>
		<pubDate>Sat, 25 Jun 2011 05:39:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.richardknop.com/?p=161#comment-758</guid>
		<description>Hi,

First of all awesome article.. i want to use the same approach but my problem is :

In my application multiple users are inserting nodes to the same tree. and later they can access their own tree in their myaccount panel. so how do i achieve this. I cannot update the master categories table so i have to keep the separate table but i am not getting how to manage this.

I am thinking of following structure.

others table:
id PK,
user_id FK, 
Other_value, (suppose i insert &quot;xyz&quot; in the other than that name will come here )
node_id (this will be the id of the other node in the categories tree)

So will i be able to generate the tree in their myaccount panel... 
Please comment your ideas..

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>First of all awesome article.. i want to use the same approach but my problem is :</p>
<p>In my application multiple users are inserting nodes to the same tree. and later they can access their own tree in their myaccount panel. so how do i achieve this. I cannot update the master categories table so i have to keep the separate table but i am not getting how to manage this.</p>
<p>I am thinking of following structure.</p>
<p>others table:<br />
id PK,<br />
user_id FK,<br />
Other_value, (suppose i insert &#8220;xyz&#8221; in the other than that name will come here )<br />
node_id (this will be the id of the other node in the categories tree)</p>
<p>So will i be able to generate the tree in their myaccount panel&#8230;<br />
Please comment your ideas..</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Back online &#124; Zend Framework Blog Written By Richard Knop</title>
		<link>http://blog.richardknop.com/2009/05/nested-set-model/comment-page-1/#comment-553</link>
		<dc:creator>Back online &#124; Zend Framework Blog Written By Richard Knop</dc:creator>
		<pubDate>Wed, 09 Feb 2011 16:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.richardknop.com/?p=161#comment-553</guid>
		<description>[...] have already drawn new pictures for Adjacency list model and Nested set model posts. They don&#8217;t look quite as good as the previous ones. That&#8217;s because I have used [...]</description>
		<content:encoded><![CDATA[<p>[...] have already drawn new pictures for Adjacency list model and Nested set model posts. They don&#8217;t look quite as good as the previous ones. That&#8217;s because I have used [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Knop</title>
		<link>http://blog.richardknop.com/2009/05/nested-set-model/comment-page-1/#comment-349</link>
		<dc:creator>Richard Knop</dc:creator>
		<pubDate>Wed, 16 Dec 2009 16:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.richardknop.com/?p=161#comment-349</guid>
		<description>removeNode() removes the node and if it has any children nodes it moves them all one level up, so the hierarchy integrity is not disturbed. That seemed the most logical to me.

It&#039;s easy to edit it so it removes also all children nodes though :)</description>
		<content:encoded><![CDATA[<p>removeNode() removes the node and if it has any children nodes it moves them all one level up, so the hierarchy integrity is not disturbed. That seemed the most logical to me.</p>
<p>It&#8217;s easy to edit it so it removes also all children nodes though <img src='http://blog.richardknop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matheo</title>
		<link>http://blog.richardknop.com/2009/05/nested-set-model/comment-page-1/#comment-348</link>
		<dc:creator>Matheo</dc:creator>
		<pubDate>Wed, 16 Dec 2009 09:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.richardknop.com/?p=161#comment-348</guid>
		<description>Thanks a lot too!
Nice stuff to get the code-idea of this Algorithm :-)
There are three notes that I want to make:

1) Seems that this condition is not needed: AND lft &gt; ?
In fact, when you see it as a whole: rgt &gt; ? AND lft &gt; ?
it&#039;s clear that rgt &gt; ? does the job alone :-)

2) I was expecting that removeNode removes the whole branch (if has any subnodes) but your script does not. It remove the parent node, but leaves any child at its previous level. That was unexpected to me

3) Because 2, I&#039;m afraid that you can&#039;t use addNodeFromRight then removeNode to update a node :-) Just get the ID and update anything that you want to update to the node :-P

Greetings and thanks again</description>
		<content:encoded><![CDATA[<p>Thanks a lot too!<br />
Nice stuff to get the code-idea of this Algorithm <img src='http://blog.richardknop.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
There are three notes that I want to make:</p>
<p>1) Seems that this condition is not needed: AND lft &gt; ?<br />
In fact, when you see it as a whole: rgt &gt; ? AND lft &gt; ?<br />
it&#8217;s clear that rgt &gt; ? does the job alone <img src='http://blog.richardknop.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>2) I was expecting that removeNode removes the whole branch (if has any subnodes) but your script does not. It remove the parent node, but leaves any child at its previous level. That was unexpected to me</p>
<p>3) Because 2, I&#8217;m afraid that you can&#8217;t use addNodeFromRight then removeNode to update a node <img src='http://blog.richardknop.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Just get the ID and update anything that you want to update to the node <img src='http://blog.richardknop.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<p>Greetings and thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garrett</title>
		<link>http://blog.richardknop.com/2009/05/nested-set-model/comment-page-1/#comment-146</link>
		<dc:creator>Garrett</dc:creator>
		<pubDate>Sat, 18 Jul 2009 07:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.richardknop.com/?p=161#comment-146</guid>
		<description>Thanks a ton for this article!  I really appreciate the simplicity of your examples.  Taking the knowledge here and applying it to Zend_Db_Table models was very simple.</description>
		<content:encoded><![CDATA[<p>Thanks a ton for this article!  I really appreciate the simplicity of your examples.  Taking the knowledge here and applying it to Zend_Db_Table models was very simple.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adjacency list model &#124; Richard Knop's Blog</title>
		<link>http://blog.richardknop.com/2009/05/nested-set-model/comment-page-1/#comment-4</link>
		<dc:creator>Adjacency list model &#124; Richard Knop's Blog</dc:creator>
		<pubDate>Fri, 22 May 2009 16:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.richardknop.com/?p=161#comment-4</guid>
		<description>[...] modified tree preorder traversal (also called nested set model) [...]</description>
		<content:encoded><![CDATA[<p>[...] modified tree preorder traversal (also called nested set model) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

