projects
/
dbsrgits/DBIx-Class-Historic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
I hate you all.
[dbsrgits/DBIx-Class-Historic.git]
/
t
/
lib
/
DBICTest
/
Schema
/
TreeLike.pm
diff --git
a/t/lib/DBICTest/Schema/TreeLike.pm
b/t/lib/DBICTest/Schema/TreeLike.pm
index
63bb975
..
297cfc6
100644
(file)
--- a/
t/lib/DBICTest/Schema/TreeLike.pm
+++ b/
t/lib/DBICTest/Schema/TreeLike.pm
@@
-14,5
+14,6
@@
__PACKAGE__->add_columns(
__PACKAGE__->set_primary_key(qw/id/);
__PACKAGE__->belongs_to('parent', 'TreeLike',
{ 'foreign.id' => 'self.parent' });
+__PACKAGE__->has_many('children', 'TreeLike', { 'foreign.parent' => 'self.id' });
1;