Filename | /home/vagrant/kohaclone/Koha/Schema/Result/MarcModificationTemplate.pm |
Statements | Executed 13 statements in 421µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 30µs | 34µs | BEGIN@1.2456 | Class::C3::Componentised::
1 | 1 | 1 | 12µs | 85µs | BEGIN@16 | Koha::Schema::Result::MarcModificationTemplate::
1 | 1 | 1 | 9µs | 18µs | BEGIN@13 | Koha::Schema::Result::MarcModificationTemplate::
1 | 1 | 1 | 8µs | 15µs | BEGIN@14 | Koha::Schema::Result::MarcModificationTemplate::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 81µs | 2 | 37µs | # spent 34µs (30+3) within Class::C3::Componentised::BEGIN@1.2456 which was called:
# once (30µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 34µs making 1 call to Class::C3::Componentised::BEGIN@1.2456
# spent 3µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::MarcModificationTemplate; | ||||
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::MarcModificationTemplate | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 37µs | 2 | 26µs | # spent 18µs (9+9) within Koha::Schema::Result::MarcModificationTemplate::BEGIN@13 which was called:
# once (9µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 18µs making 1 call to Koha::Schema::Result::MarcModificationTemplate::BEGIN@13
# spent 9µs making 1 call to strict::import |
14 | 2 | 37µs | 2 | 22µs | # spent 15µs (8+7) within Koha::Schema::Result::MarcModificationTemplate::BEGIN@14 which was called:
# once (8µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 15µs making 1 call to Koha::Schema::Result::MarcModificationTemplate::BEGIN@14
# spent 7µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 198µs | 2 | 158µs | # spent 85µs (12+73) within Koha::Schema::Result::MarcModificationTemplate::BEGIN@16 which was called:
# once (12µs+73µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 85µs making 1 call to Koha::Schema::Result::MarcModificationTemplate::BEGIN@16
# spent 73µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<marc_modification_templates> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 22µs | 1 | 313µs | __PACKAGE__->table("marc_modification_templates"); # spent 313µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 template_id | ||||
27 | |||||
28 | data_type: 'integer' | ||||
29 | is_auto_increment: 1 | ||||
30 | is_nullable: 0 | ||||
31 | |||||
32 | =head2 name | ||||
33 | |||||
34 | data_type: 'text' | ||||
35 | is_nullable: 0 | ||||
36 | |||||
37 | =cut | ||||
38 | |||||
39 | 1 | 17µs | 1 | 204µs | __PACKAGE__->add_columns( # spent 204µs making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
40 | "template_id", | ||||
41 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
42 | "name", | ||||
43 | { data_type => "text", is_nullable => 0 }, | ||||
44 | ); | ||||
45 | |||||
46 | =head1 PRIMARY KEY | ||||
47 | |||||
48 | =over 4 | ||||
49 | |||||
50 | =item * L</template_id> | ||||
51 | |||||
52 | =back | ||||
53 | |||||
54 | =cut | ||||
55 | |||||
56 | 1 | 14µs | 1 | 69µs | __PACKAGE__->set_primary_key("template_id"); # spent 69µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
57 | |||||
58 | =head1 RELATIONS | ||||
59 | |||||
60 | =head2 marc_modification_template_actions | ||||
61 | |||||
62 | Type: has_many | ||||
63 | |||||
64 | Related object: L<Koha::Schema::Result::MarcModificationTemplateAction> | ||||
65 | |||||
66 | =cut | ||||
67 | |||||
68 | 1 | 8µs | 1 | 391µs | __PACKAGE__->has_many( # spent 391µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
69 | "marc_modification_template_actions", | ||||
70 | "Koha::Schema::Result::MarcModificationTemplateAction", | ||||
71 | { "foreign.template_id" => "self.template_id" }, | ||||
72 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
73 | ); | ||||
74 | |||||
75 | |||||
76 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-31 22:03:59 | ||||
77 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:igqidvfP0AgV5RRBa1huew | ||||
78 | |||||
79 | |||||
80 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||||
81 | 1 | 7µs | 1; |