Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Branchcategory.pm |
Statements | Executed 14 statements in 1.17ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 45µs | 132µs | BEGIN@16 | Koha::Schema::Result::Branchcategory::
1 | 1 | 1 | 33µs | 37µs | BEGIN@1.2784 | Class::C3::Componentised::
1 | 1 | 1 | 11µs | 22µs | BEGIN@13 | Koha::Schema::Result::Branchcategory::
1 | 1 | 1 | 9µs | 17µs | BEGIN@14 | Koha::Schema::Result::Branchcategory::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 92µs | 2 | 40µs | # spent 37µs (33+3) within Class::C3::Componentised::BEGIN@1.2784 which was called:
# once (33µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 37µs making 1 call to Class::C3::Componentised::BEGIN@1.2784
# spent 4µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::Branchcategory; | ||||
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::Branchcategory | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 42µs | 2 | 34µs | # spent 22µs (11+11) within Koha::Schema::Result::Branchcategory::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::Branchcategory::BEGIN@13
# spent 11µs making 1 call to strict::import |
14 | 2 | 615µs | 2 | 26µs | # spent 17µs (9+8) within Koha::Schema::Result::Branchcategory::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::Branchcategory::BEGIN@14
# spent 8µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 308µs | 2 | 219µs | # spent 132µs (45+87) within Koha::Schema::Result::Branchcategory::BEGIN@16 which was called:
# once (45µs+87µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 132µs making 1 call to Koha::Schema::Result::Branchcategory::BEGIN@16
# spent 87µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<branchcategories> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 31µs | 1 | 380µs | __PACKAGE__->table("branchcategories"); # spent 380µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 categorycode | ||||
27 | |||||
28 | data_type: 'varchar' | ||||
29 | default_value: (empty string) | ||||
30 | is_nullable: 0 | ||||
31 | size: 10 | ||||
32 | |||||
33 | =head2 categoryname | ||||
34 | |||||
35 | data_type: 'varchar' | ||||
36 | is_nullable: 1 | ||||
37 | size: 32 | ||||
38 | |||||
39 | =head2 codedescription | ||||
40 | |||||
41 | data_type: 'mediumtext' | ||||
42 | is_nullable: 1 | ||||
43 | |||||
44 | =head2 categorytype | ||||
45 | |||||
46 | data_type: 'varchar' | ||||
47 | is_nullable: 1 | ||||
48 | size: 16 | ||||
49 | |||||
50 | =head2 show_in_pulldown | ||||
51 | |||||
52 | data_type: 'tinyint' | ||||
53 | default_value: 0 | ||||
54 | is_nullable: 0 | ||||
55 | |||||
56 | =cut | ||||
57 | |||||
58 | 1 | 29µs | 1 | 3.44ms | __PACKAGE__->add_columns( # spent 3.44ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
59 | "categorycode", | ||||
60 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, | ||||
61 | "categoryname", | ||||
62 | { data_type => "varchar", is_nullable => 1, size => 32 }, | ||||
63 | "codedescription", | ||||
64 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
65 | "categorytype", | ||||
66 | { data_type => "varchar", is_nullable => 1, size => 16 }, | ||||
67 | "show_in_pulldown", | ||||
68 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||||
69 | ); | ||||
70 | |||||
71 | =head1 PRIMARY KEY | ||||
72 | |||||
73 | =over 4 | ||||
74 | |||||
75 | =item * L</categorycode> | ||||
76 | |||||
77 | =back | ||||
78 | |||||
79 | =cut | ||||
80 | |||||
81 | 1 | 21µs | 1 | 81µs | __PACKAGE__->set_primary_key("categorycode"); # spent 81µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
82 | |||||
83 | =head1 RELATIONS | ||||
84 | |||||
85 | =head2 branchrelations | ||||
86 | |||||
87 | Type: has_many | ||||
88 | |||||
89 | Related object: L<Koha::Schema::Result::Branchrelation> | ||||
90 | |||||
91 | =cut | ||||
92 | |||||
93 | 1 | 8µs | 1 | 381µs | __PACKAGE__->has_many( # spent 381µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
94 | "branchrelations", | ||||
95 | "Koha::Schema::Result::Branchrelation", | ||||
96 | { "foreign.categorycode" => "self.categorycode" }, | ||||
97 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
98 | ); | ||||
99 | |||||
100 | =head2 branchcodes | ||||
101 | |||||
102 | Type: many_to_many | ||||
103 | |||||
104 | Composing rels: L</branchrelations> -> branchcode | ||||
105 | |||||
106 | =cut | ||||
107 | |||||
108 | 1 | 11µs | 1 | 152µs | __PACKAGE__->many_to_many("branchcodes", "branchrelations", "branchcode"); # spent 152µs making 1 call to DBIx::Class::Relationship::ManyToMany::many_to_many |
109 | |||||
110 | |||||
111 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
112 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HU5N7lAiLIz6yC9va3fDbg | ||||
113 | |||||
114 | |||||
115 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
116 | 1 | 11µs | 1; |