@@ -, +, @@ --- Koha/Schema/Result/Biblio.pm | 29 ++--------------------------- Koha/Schema/Result/OaiSet.pm | 14 ++------------ Koha/Schema/Result/OaiSetsBiblio.pm | 22 +++------------------- 3 files changed, 7 insertions(+), 58 deletions(-) --- a/Koha/Schema/Result/Biblio.pm +++ a/Koha/Schema/Result/Biblio.pm @@ -197,21 +197,6 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 oai_sets_biblios - -Type: has_many - -Related object: L - -=cut - -__PACKAGE__->has_many( - "oai_sets_biblios", - "Koha::Schema::Result::OaiSetsBiblio", - { "foreign.biblionumber" => "self.biblionumber" }, - { cascade_copy => 0, cascade_delete => 0 }, -); - =head2 old_reserves Type: has_many @@ -317,18 +302,8 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 sets - -Type: many_to_many - -Composing rels: L -> set - -=cut - -__PACKAGE__->many_to_many("sets", "oai_sets_biblios", "set"); - -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0//8OGf7OteNnwT03g4QsA +# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-07-08 15:06:22 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vh7DAGajJCEzHE7YmAG3jg 1; --- a/Koha/Schema/Result/OaiSet.pm +++ a/Koha/Schema/Result/OaiSet.pm @@ -125,19 +125,9 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 biblionumbers -Type: many_to_many - -Composing rels: L -> biblionumber - -=cut - -__PACKAGE__->many_to_many("biblionumbers", "oai_sets_biblios", "biblionumber"); - - -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3M30E7wFbGbesAfQYyalTw +# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-07-08 15:06:22 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ju63fVMgLPbeFxeZJsQHRQ # You can replace this text with custom content, and it will be preserved on regeneration --- a/Koha/Schema/Result/OaiSetsBiblio.pm +++ a/Koha/Schema/Result/OaiSetsBiblio.pm @@ -26,7 +26,6 @@ __PACKAGE__->table("oai_sets_biblios"); =head2 biblionumber data_type: 'integer' - is_foreign_key: 1 is_nullable: 0 =head2 set_id @@ -39,7 +38,7 @@ __PACKAGE__->table("oai_sets_biblios"); __PACKAGE__->add_columns( "biblionumber", - { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, + { data_type => "integer", is_nullable => 0 }, "set_id", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, ); @@ -60,21 +59,6 @@ __PACKAGE__->set_primary_key("biblionumber", "set_id"); =head1 RELATIONS -=head2 biblionumber - -Type: belongs_to - -Related object: L - -=cut - -__PACKAGE__->belongs_to( - "biblionumber", - "Koha::Schema::Result::Biblio", - { biblionumber => "biblionumber" }, - { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, -); - =head2 set Type: belongs_to @@ -91,8 +75,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Zl0mhAt8isigZay80Ie6jA +# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-07-08 15:06:22 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oGVUyyyune8FVOj504xizw # You can replace this text with custom content, and it will be preserved on regeneration --