Filename | /home/vagrant/kohaclone/Koha/Schema/Result/BranchBorrowerCircRule.pm |
Statements | Executed 14 statements in 489µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 26µs | 30µs | BEGIN@1.318 | Class::C3::Componentised::
1 | 1 | 1 | 12µs | 107µs | BEGIN@16 | Koha::Schema::Result::BranchBorrowerCircRule::
1 | 1 | 1 | 10µs | 18µs | BEGIN@13 | Koha::Schema::Result::BranchBorrowerCircRule::
1 | 1 | 1 | 8µs | 16µs | BEGIN@14 | Koha::Schema::Result::BranchBorrowerCircRule::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 71µs | 2 | 34µs | # spent 30µs (26+4) within Class::C3::Componentised::BEGIN@1.318 which was called:
# once (26µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 30µs making 1 call to Class::C3::Componentised::BEGIN@1.318
# spent 4µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::BranchBorrowerCircRule; | ||||
3 | |||||
4 | # Created by DBIx::Class::Schema::Loader | ||||
5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||||
6 | |||||
7 | =head1 NAME | ||||
8 | |||||
9 | Koha::Schema::Result::BranchBorrowerCircRule | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 39µs | 2 | 27µs | # spent 18µs (10+9) within Koha::Schema::Result::BranchBorrowerCircRule::BEGIN@13 which was called:
# once (10µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 18µs making 1 call to Koha::Schema::Result::BranchBorrowerCircRule::BEGIN@13
# spent 9µs making 1 call to strict::import |
14 | 2 | 37µs | 2 | 23µs | # spent 16µs (8+7) within Koha::Schema::Result::BranchBorrowerCircRule::BEGIN@14 which was called:
# once (8µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 16µs making 1 call to Koha::Schema::Result::BranchBorrowerCircRule::BEGIN@14
# spent 8µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 266µs | 2 | 202µs | # spent 107µs (12+95) within Koha::Schema::Result::BranchBorrowerCircRule::BEGIN@16 which was called:
# once (12µs+95µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 107µs making 1 call to Koha::Schema::Result::BranchBorrowerCircRule::BEGIN@16
# spent 95µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<branch_borrower_circ_rules> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 18µs | 1 | 330µs | __PACKAGE__->table("branch_borrower_circ_rules"); # spent 330µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 branchcode | ||||
27 | |||||
28 | data_type: 'varchar' | ||||
29 | is_foreign_key: 1 | ||||
30 | is_nullable: 0 | ||||
31 | size: 10 | ||||
32 | |||||
33 | =head2 categorycode | ||||
34 | |||||
35 | data_type: 'varchar' | ||||
36 | is_foreign_key: 1 | ||||
37 | is_nullable: 0 | ||||
38 | size: 10 | ||||
39 | |||||
40 | =head2 maxissueqty | ||||
41 | |||||
42 | data_type: 'integer' | ||||
43 | is_nullable: 1 | ||||
44 | |||||
45 | =head2 maxonsiteissueqty | ||||
46 | |||||
47 | data_type: 'integer' | ||||
48 | is_nullable: 1 | ||||
49 | |||||
50 | =cut | ||||
51 | |||||
52 | 1 | 19µs | 1 | 1.03ms | __PACKAGE__->add_columns( # spent 1.03ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
53 | "branchcode", | ||||
54 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, | ||||
55 | "categorycode", | ||||
56 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, | ||||
57 | "maxissueqty", | ||||
58 | { data_type => "integer", is_nullable => 1 }, | ||||
59 | "maxonsiteissueqty", | ||||
60 | { data_type => "integer", is_nullable => 1 }, | ||||
61 | ); | ||||
62 | |||||
63 | =head1 PRIMARY KEY | ||||
64 | |||||
65 | =over 4 | ||||
66 | |||||
67 | =item * L</categorycode> | ||||
68 | |||||
69 | =item * L</branchcode> | ||||
70 | |||||
71 | =back | ||||
72 | |||||
73 | =cut | ||||
74 | |||||
75 | 1 | 17µs | 1 | 91µs | __PACKAGE__->set_primary_key("categorycode", "branchcode"); # spent 91µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
76 | |||||
77 | =head1 RELATIONS | ||||
78 | |||||
79 | =head2 branchcode | ||||
80 | |||||
81 | Type: belongs_to | ||||
82 | |||||
83 | Related object: L<Koha::Schema::Result::Branch> | ||||
84 | |||||
85 | =cut | ||||
86 | |||||
87 | 1 | 10µs | 1 | 425µs | __PACKAGE__->belongs_to( # spent 425µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
88 | "branchcode", | ||||
89 | "Koha::Schema::Result::Branch", | ||||
90 | { branchcode => "branchcode" }, | ||||
91 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
92 | ); | ||||
93 | |||||
94 | =head2 categorycode | ||||
95 | |||||
96 | Type: belongs_to | ||||
97 | |||||
98 | Related object: L<Koha::Schema::Result::Category> | ||||
99 | |||||
100 | =cut | ||||
101 | |||||
102 | 1 | 4µs | 1 | 495µs | __PACKAGE__->belongs_to( # spent 495µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
103 | "categorycode", | ||||
104 | "Koha::Schema::Result::Category", | ||||
105 | { categorycode => "categorycode" }, | ||||
106 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
107 | ); | ||||
108 | |||||
109 | |||||
110 | # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-05-13 17:48:39 | ||||
111 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MrhgFhfjV71AC5PXmvRPzg | ||||
112 | |||||
113 | |||||
114 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
115 | 1 | 8µs | 1; |