Bug 13007: DBIC updates
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
761527b026
commit
314523f949
2 changed files with 43 additions and 5 deletions
|
@ -242,6 +242,21 @@ __PACKAGE__->has_many(
|
|||
{ cascade_copy => 0, cascade_delete => 0 },
|
||||
);
|
||||
|
||||
=head2 suggestions
|
||||
|
||||
Type: has_many
|
||||
|
||||
Related object: L<Koha::Schema::Result::Suggestion>
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->has_many(
|
||||
"suggestions",
|
||||
"Koha::Schema::Result::Suggestion",
|
||||
{ "foreign.budgetid" => "self.budget_id" },
|
||||
{ cascade_copy => 0, cascade_delete => 0 },
|
||||
);
|
||||
|
||||
=head2 borrowernumbers
|
||||
|
||||
Type: many_to_many
|
||||
|
@ -253,8 +268,8 @@ Composing rels: L</aqbudgetborrowers> -> borrowernumber
|
|||
__PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber");
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-05 15:20:11
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:733+8NRE5Ip/30URBcJsbA
|
||||
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-09 15:51:54
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SZKnWPCMNFUm/TzeBxeDZA
|
||||
|
||||
|
||||
# You can replace this text with custom content, and it will be preserved on regeneration
|
||||
|
|
|
@ -165,6 +165,7 @@ __PACKAGE__->table("suggestions");
|
|||
=head2 budgetid
|
||||
|
||||
data_type: 'integer'
|
||||
is_foreign_key: 1
|
||||
is_nullable: 1
|
||||
|
||||
=head2 branchcode
|
||||
|
@ -270,7 +271,7 @@ __PACKAGE__->add_columns(
|
|||
"patronreason",
|
||||
{ data_type => "text", is_nullable => 1 },
|
||||
"budgetid",
|
||||
{ data_type => "integer", is_nullable => 1 },
|
||||
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
|
||||
"branchcode",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 10 },
|
||||
"collectiontitle",
|
||||
|
@ -299,9 +300,31 @@ __PACKAGE__->add_columns(
|
|||
|
||||
__PACKAGE__->set_primary_key("suggestionid");
|
||||
|
||||
=head1 RELATIONS
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-18 13:01:05
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tMbXZ1id2ls57UMp5jicFA
|
||||
=head2 budgetid
|
||||
|
||||
Type: belongs_to
|
||||
|
||||
Related object: L<Koha::Schema::Result::Aqbudget>
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->belongs_to(
|
||||
"budgetid",
|
||||
"Koha::Schema::Result::Aqbudget",
|
||||
{ budget_id => "budgetid" },
|
||||
{
|
||||
is_deferrable => 1,
|
||||
join_type => "LEFT",
|
||||
on_delete => "SET NULL",
|
||||
on_update => "CASCADE",
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-09 15:51:54
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k7YUEiU7g+VxpMsEuOiizg
|
||||
|
||||
|
||||
# You can replace this text with custom content, and it will be preserved on regeneration
|
||||
|
|
Loading…
Reference in a new issue