From 473b9eff60283e86ec64f3148ad8aa4c1881ec4f Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 21 Apr 2010 19:48:25 +0000 Subject: [PATCH] Bugfixing --- bin/check-modules.pl | 2 ++ lib/FrBr/Books/Db/Result/Buecher.pm | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/check-modules.pl b/bin/check-modules.pl index 54b6609..ee59120 100755 --- a/bin/check-modules.pl +++ b/bin/check-modules.pl @@ -32,6 +32,8 @@ my @Modules = ( 'Catalyst::Model::DBIC::Schema' => undef, 'Catalyst::View::TT' => undef, 'Config::Any' => undef, + 'Template::Plugin::ForumCode' => undef, + 'Crypt::SaltedHash' => undef, 'Cwd' => undef, 'DBIx::Class' => undef, 'DBIx::Class::Schema' => undef, diff --git a/lib/FrBr/Books/Db/Result/Buecher.pm b/lib/FrBr/Books/Db/Result/Buecher.pm index 14e594f..1cd212d 100644 --- a/lib/FrBr/Books/Db/Result/Buecher.pm +++ b/lib/FrBr/Books/Db/Result/Buecher.pm @@ -35,10 +35,11 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); -__PACKAGE__->might_have( 'waehrung' => 'FrBr::Books::Db::Result::Waehrungen', { 'foreign.id' => 'self.waehrungs_id' } ); +__PACKAGE__->belongs_to( 'waehrung' => 'FrBr::Books::Db::Result::Waehrungen', { 'foreign.id' => 'self.waehrungs_id' }, { 'join_type' => 'left' }, ); +__PACKAGE__->belongs_to( 'ort' => 'FrBr::Books::Db::Result::Orte', { 'foreign.id' => 'self.orts_id' }, { 'join_type' => 'left' }, ); +__PACKAGE__->belongs_to( 'bindungsart' => 'FrBr::Books::Db::Result::Bindungsarten', { 'foreign.id' => 'self.bindungsart_id' }, { 'join_type' => 'left' }, ); + __PACKAGE__->might_have( 'verlag' => 'FrBr::Books::Db::Result::Verlage', { 'foreign.id' => 'self.verlags_id' } ); -__PACKAGE__->might_have( 'ort' => 'FrBr::Books::Db::Result::Orte', { 'foreign.id' => 'self.orts_id' } ); -__PACKAGE__->might_have( 'bindungsart' => 'FrBr::Books::Db::Result::Bindungsarten', { 'foreign.id' => 'self.bindungsart_id' } ); __PACKAGE__->has_many( 'autor_buch' => 'FrBr::Books::Db::Result::Autor2Buch', { 'foreign.buch_id' => 'self.id' } ); __PACKAGE__->many_to_many( 'autoren' => 'autor_buch', 'autor' ); -- 2.39.5