Fixes to CDBICompat::HasMany mapping method support, with thanks to bricas
[dbsrgits/DBIx-Class.git] / t / testlib / ActorAlias.pm
diff --git a/t/testlib/ActorAlias.pm b/t/testlib/ActorAlias.pm
new file mode 100644 (file)
index 0000000..8dcbcb0
--- /dev/null
@@ -0,0 +1,26 @@
+package ActorAlias;\r
+\r
+BEGIN { unshift @INC, './t/testlib'; }\r
+\r
+use strict;\r
+use warnings;\r
+\r
+use base 'DBIx::Class::Test::SQLite';\r
+\r
+__PACKAGE__->set_table( 'ActorAlias' );\r
+\r
+__PACKAGE__->columns( Primary => 'id' );\r
+__PACKAGE__->columns( All     => qw/ actor alias / );\r
+__PACKAGE__->has_a( actor => 'Actor' );\r
+__PACKAGE__->has_a( alias => 'Actor' );\r
+\r
+sub create_sql {\r
+       return qq{\r
+               id    INTEGER PRIMARY KEY,\r
+               actor INTEGER,\r
+               alias INTEGER\r
+       }\r
+}\r
+\r
+1;\r
+\r