Once again, use result_source->resultset->find instead of ->find.
[dbsrgits/DBIx-Class-Tree.git] / lib / DBIx / Class / Tree / AdjacencyList.pm
index d1ef803..af8c26e 100644 (file)
@@ -91,7 +91,7 @@ sub parent {
         return 1;
     }
     else {
-        return $self->find( $self->get_column( $parent_column ) );
+        return $self->result_source->resultset->find( $self->get_column( $parent_column ) );
     }
 }
 
@@ -118,7 +118,7 @@ sub children {
 
   $parent->attach_child( $child );
 
-Sets (or moves) the child to the new parent.
+Sets the child to the new parent.
 
 =cut