Bug 3206: (RM followup) DBIx updates

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomas Cohen Arazi 2015-07-08 15:07:24 -03:00
parent b9cc3e8e72
commit bc29f6226f
3 changed files with 7 additions and 58 deletions

View File

@ -197,21 +197,6 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 oai_sets_biblios
Type: has_many
Related object: L<Koha::Schema::Result::OaiSetsBiblio>
=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</oai_sets_biblios> -> 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;

View File

@ -125,19 +125,9 @@ __PACKAGE__->has_many(
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 biblionumbers
Type: many_to_many
Composing rels: L</oai_sets_biblios> -> 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

View File

@ -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<Koha::Schema::Result::Biblio>
=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