Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Link.pm
index 72574ea..50ddf3f 100644 (file)
@@ -1,12 +1,11 @@
 package # hide from PAUSE
     DBICTest::Schema::Link;
 
-use base 'DBIx::Class::Core';
-
 use strict;
 use warnings;
 
-__PACKAGE__->load_components(qw/PK::Auto Core/);
+use base qw/DBICTest::BaseResult/;
+
 __PACKAGE__->table('link');
 __PACKAGE__->add_columns(
     'id' => {
@@ -26,6 +25,8 @@ __PACKAGE__->add_columns(
 );
 __PACKAGE__->set_primary_key('id');
 
+__PACKAGE__->has_many ( bookmarks => 'DBICTest::Schema::Bookmark', 'link', { cascade_delete => 0 } );
+
 use overload '""' => sub { shift->url }, fallback=> 1;
 
 1;