Filename | /home/vagrant/kohaclone/Koha/Schema/Result/CategoriesBranch.pm |
Statements | Executed 0 statements in 0s |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 32µs | 36µs | BEGIN@1.1242 | Class::C3::Componentised::
1 | 1 | 1 | 13µs | 90µs | BEGIN@16 | Koha::Schema::Result::CategoriesBranch::
1 | 1 | 1 | 11µs | 22µs | BEGIN@13 | Koha::Schema::Result::CategoriesBranch::
1 | 1 | 1 | 9µs | 17µs | BEGIN@14 | Koha::Schema::Result::CategoriesBranch::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 39µs | # spent 36µs (32+4) within Class::C3::Componentised::BEGIN@1.1242 which was called:
# once (32µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 36µs making 1 call to Class::C3::Componentised::BEGIN@1.1242
# spent 4µs making 1 call to utf8::import | ||
2 | package Koha::Schema::Result::CategoriesBranch; | ||||
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::CategoriesBranch | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 34µs | # spent 22µs (11+11) within Koha::Schema::Result::CategoriesBranch::BEGIN@13 which was called:
# once (11µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 22µs making 1 call to Koha::Schema::Result::CategoriesBranch::BEGIN@13
# spent 12µs making 1 call to strict::import | ||
14 | 2 | 26µs | # spent 17µs (9+8) within Koha::Schema::Result::CategoriesBranch::BEGIN@14 which was called:
# once (9µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 17µs making 1 call to Koha::Schema::Result::CategoriesBranch::BEGIN@14
# spent 8µs making 1 call to warnings::import | ||
15 | |||||
16 | 2 | 167µs | # spent 90µs (13+77) within Koha::Schema::Result::CategoriesBranch::BEGIN@16 which was called:
# once (13µs+77µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 90µs making 1 call to Koha::Schema::Result::CategoriesBranch::BEGIN@16
# spent 77µs making 1 call to base::import | ||
17 | |||||
18 | =head1 TABLE: C<categories_branches> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 396µs | __PACKAGE__->table("categories_branches"); # spent 396µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 categorycode | ||||
27 | |||||
28 | data_type: 'varchar' | ||||
29 | is_foreign_key: 1 | ||||
30 | is_nullable: 1 | ||||
31 | size: 10 | ||||
32 | |||||
33 | =head2 branchcode | ||||
34 | |||||
35 | data_type: 'varchar' | ||||
36 | is_foreign_key: 1 | ||||
37 | is_nullable: 1 | ||||
38 | size: 10 | ||||
39 | |||||
40 | =cut | ||||
41 | |||||
42 | 1 | 225µs | __PACKAGE__->add_columns( # spent 225µs making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
43 | "categorycode", | ||||
44 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, | ||||
45 | "branchcode", | ||||
46 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, | ||||
47 | ); | ||||
48 | |||||
49 | =head1 RELATIONS | ||||
50 | |||||
51 | =head2 branchcode | ||||
52 | |||||
53 | Type: belongs_to | ||||
54 | |||||
55 | Related object: L<Koha::Schema::Result::Branch> | ||||
56 | |||||
57 | =cut | ||||
58 | |||||
59 | 1 | 385µs | __PACKAGE__->belongs_to( # spent 385µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
60 | "branchcode", | ||||
61 | "Koha::Schema::Result::Branch", | ||||
62 | { branchcode => "branchcode" }, | ||||
63 | { | ||||
64 | is_deferrable => 1, | ||||
65 | join_type => "LEFT", | ||||
66 | on_delete => "CASCADE", | ||||
67 | on_update => "RESTRICT", | ||||
68 | }, | ||||
69 | ); | ||||
70 | |||||
71 | =head2 categorycode | ||||
72 | |||||
73 | Type: belongs_to | ||||
74 | |||||
75 | Related object: L<Koha::Schema::Result::Category> | ||||
76 | |||||
77 | =cut | ||||
78 | |||||
79 | 1 | 278µs | __PACKAGE__->belongs_to( # spent 278µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
80 | "categorycode", | ||||
81 | "Koha::Schema::Result::Category", | ||||
82 | { categorycode => "categorycode" }, | ||||
83 | { | ||||
84 | is_deferrable => 1, | ||||
85 | join_type => "LEFT", | ||||
86 | on_delete => "CASCADE", | ||||
87 | on_update => "RESTRICT", | ||||
88 | }, | ||||
89 | ); | ||||
90 | |||||
91 | |||||
92 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55 | ||||
93 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5NpXKN72zzNcHauiDZfdEA | ||||
94 | |||||
95 | |||||
96 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
97 | 1; |