]> Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blobdiff - t/lib/DBSchema/Result/Twokeys.pm
fix for a new record that belongs to an old one; accepting row objects in the updates...
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBSchema / Result / Twokeys.pm
diff --git a/t/lib/DBSchema/Result/Twokeys.pm b/t/lib/DBSchema/Result/Twokeys.pm
new file mode 100644 (file)
index 0000000..7d71d01
--- /dev/null
@@ -0,0 +1,22 @@
+package DBSchema::Result::Twokeys;
+
+# Created by DBIx::Class::Schema::Loader v0.03000 @ 2006-10-02 08:24:09
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class';
+
+__PACKAGE__->load_components("PK::Auto", "Core");
+__PACKAGE__->table("twokeys");
+__PACKAGE__->add_columns(
+    "dvd_name" => { data_type => 'varchar', size => 100 },
+    "key2" => { data_type => 'integer' },
+);
+__PACKAGE__->set_primary_key("dvd_name", "key2");
+
+__PACKAGE__->add_relationship('like_belongs_to', 'DBSchema::Result::Dvd', { 'foreign.name' => 'self.dvd_name' }, );
+
+
+1;
+
This page took 0.020497 seconds and 4 git commands to generate.