rename occurences of belongs_to in tests
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / TreeLike.pm
index 853bfe6..c06ab01 100644 (file)
@@ -15,7 +15,7 @@ __PACKAGE__->add_columns(
  },
 );
 __PACKAGE__->set_primary_key(qw/id/);
-__PACKAGE__->belongs_to('parent', 'TreeLike',
+__PACKAGE__->refers_to('parent', 'TreeLike',
                           { 'foreign.id' => 'self.parent' });
 __PACKAGE__->has_many('children', 'TreeLike', { 'foreign.parent' => 'self.id' });