fixed belongs_to rels in Dvd
authorAlexander Hartmaier <alexander.hartmaier@t-systems.at>
Tue, 5 Oct 2010 16:56:08 +0000 (18:56 +0200)
committerAlexander Hartmaier <alexander.hartmaier@t-systems.at>
Tue, 5 Oct 2010 16:56:08 +0000 (18:56 +0200)
t/lib/DBSchema/Result/Dvd.pm
t/lib/DBSchema/Result/Twokeys.pm
t/lib/DBSchema/Result/Twokeys_belongsto.pm

index ba34eecc6c9c1ae98e761fe87f26658b92d68324..e9d6627773c4e9a8ae7641d1c492dca394ca5cf4 100644 (file)
@@ -45,8 +45,8 @@ __PACKAGE__->add_columns(
   },
 );
 __PACKAGE__->set_primary_key('dvd_id');
-__PACKAGE__->belongs_to('owner', 'DBSchema::Result::User', { id => 'owner' });
-__PACKAGE__->belongs_to('current_borrower', 'DBSchema::Result::User', { id => 'current_borrower' });
+__PACKAGE__->belongs_to('owner', 'DBSchema::Result::User', 'owner');
+__PACKAGE__->belongs_to('current_borrower', 'DBSchema::Result::User', 'current_borrower');
 __PACKAGE__->has_many('dvdtags', 'Dvdtag', { 'foreign.dvd' => 'self.dvd_id' });
 __PACKAGE__->has_many('viewings', 'DBSchema::Result::Viewing', { 'foreign.dvd_id' => 'self.dvd_id' });
 __PACKAGE__->many_to_many('tags', 'dvdtags' => 'tag');
index ee9f15ec75631f93776f68c53df3337f3a83100d..ff27f92bc58f9c3baa9242d53ea06a968fadc6a6 100644 (file)
@@ -18,5 +18,4 @@ __PACKAGE__->set_primary_key("dvd_name", "key2");
 __PACKAGE__->add_relationship('like_belongs_to', 'DBSchema::Result::Dvd', { 'foreign.name' => 'self.dvd_name' }, { accessor => 'single' });
 
 
-1;
-
+1;
\ No newline at end of file
index 3f35aa03ef76567923f97249bb80a303f1f16904..4c5a8ae79ef302c817261ff54946261ed8d81978 100644 (file)
@@ -20,5 +20,4 @@ __PACKAGE__->add_relationship('like_belongs_to', 'DBSchema::Result::Dvd', { 'for
 __PACKAGE__->belongs_to('onekey', 'DBSchema::Result::Onekey', { 'foreign.id' => 'self.key1' }, );
 
 
-1;
-
+1;
\ No newline at end of file
This page took 0.020449 seconds and 4 git commands to generate.