From: Arthur Axel "fREW" Schmidt Date: Thu, 9 Sep 2010 02:19:07 +0000 (+0000) Subject: small docpatch (nebulous) X-Git-Tag: 0.03002~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bfeda3d7b6a362c438889080e6f2c2c834d1c9f2;p=dbsrgits%2FDBIx-Class-Tree.git small docpatch (nebulous) --- diff --git a/lib/DBIx/Class/Tree/AdjacencyList.pm b/lib/DBIx/Class/Tree/AdjacencyList.pm index d913113..e668a38 100644 --- a/lib/DBIx/Class/Tree/AdjacencyList.pm +++ b/lib/DBIx/Class/Tree/AdjacencyList.pm @@ -66,11 +66,10 @@ stop you from having multiple root nodes. __PACKAGE__->parent_column('parent_id'); Declares the name of the column that contains the self-referential -ID which defines the parent row. Defaults to "parent_id". This -will create a has_many (children) and belongs_to (parent) -relationship. +ID which defines the parent row. This will create a has_many (children) +and belongs_to (parent) relationship. -This method also setups an additional has_many relationship called +This method also sets up an additional has_many relationship called parents which is useful when you want to treat an adjacency list as a DAG. @@ -114,7 +113,7 @@ And you execute: $b->parent( $d ); -Since D is a descendant of B then all of B's siblings get their parent +Since D is a descendant of B then all of D's siblings get their parent changed to A. Then B's parent is set to D. A