| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Collection.pm |
| Statements | Executed 13 statements in 520µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 34µs | 38µs | Class::C3::Componentised::BEGIN@1.2486 |
| 1 | 1 | 1 | 12µs | 24µs | Koha::Schema::Result::Collection::BEGIN@13 |
| 1 | 1 | 1 | 10µs | 88µs | Koha::Schema::Result::Collection::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 20µs | Koha::Schema::Result::Collection::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 83µs | 2 | 42µs | # spent 38µs (34+4) within Class::C3::Componentised::BEGIN@1.2486 which was called:
# once (34µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 38µs making 1 call to Class::C3::Componentised::BEGIN@1.2486
# spent 4µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::Collection; | ||||
| 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::Collection | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 45µs | 2 | 35µs | # spent 24µs (12+11) within Koha::Schema::Result::Collection::BEGIN@13 which was called:
# once (12µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 24µs making 1 call to Koha::Schema::Result::Collection::BEGIN@13
# spent 11µs making 1 call to strict::import |
| 14 | 2 | 48µs | 2 | 30µs | # spent 20µs (10+10) within Koha::Schema::Result::Collection::BEGIN@14 which was called:
# once (10µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 20µs making 1 call to Koha::Schema::Result::Collection::BEGIN@14
# spent 10µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 248µs | 2 | 165µs | # spent 88µs (10+77) within Koha::Schema::Result::Collection::BEGIN@16 which was called:
# once (10µs+77µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 88µs making 1 call to Koha::Schema::Result::Collection::BEGIN@16
# spent 77µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<collections> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 19µs | 1 | 319µs | __PACKAGE__->table("collections"); # spent 319µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 colId | ||||
| 27 | |||||
| 28 | accessor: 'col_id' | ||||
| 29 | data_type: 'integer' | ||||
| 30 | is_auto_increment: 1 | ||||
| 31 | is_nullable: 0 | ||||
| 32 | |||||
| 33 | =head2 colTitle | ||||
| 34 | |||||
| 35 | accessor: 'col_title' | ||||
| 36 | data_type: 'varchar' | ||||
| 37 | default_value: (empty string) | ||||
| 38 | is_nullable: 0 | ||||
| 39 | size: 100 | ||||
| 40 | |||||
| 41 | =head2 colDesc | ||||
| 42 | |||||
| 43 | accessor: 'col_desc' | ||||
| 44 | data_type: 'text' | ||||
| 45 | is_nullable: 0 | ||||
| 46 | |||||
| 47 | =head2 colBranchcode | ||||
| 48 | |||||
| 49 | accessor: 'col_branchcode' | ||||
| 50 | data_type: 'varchar' | ||||
| 51 | is_foreign_key: 1 | ||||
| 52 | is_nullable: 1 | ||||
| 53 | size: 10 | ||||
| 54 | |||||
| 55 | =cut | ||||
| 56 | |||||
| 57 | 1 | 25µs | 1 | 7.31ms | __PACKAGE__->add_columns( # spent 7.31ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 58 | "colId", | ||||
| 59 | { | ||||
| 60 | accessor => "col_id", | ||||
| 61 | data_type => "integer", | ||||
| 62 | is_auto_increment => 1, | ||||
| 63 | is_nullable => 0, | ||||
| 64 | }, | ||||
| 65 | "colTitle", | ||||
| 66 | { | ||||
| 67 | accessor => "col_title", | ||||
| 68 | data_type => "varchar", | ||||
| 69 | default_value => "", | ||||
| 70 | is_nullable => 0, | ||||
| 71 | size => 100, | ||||
| 72 | }, | ||||
| 73 | "colDesc", | ||||
| 74 | { accessor => "col_desc", data_type => "text", is_nullable => 0 }, | ||||
| 75 | "colBranchcode", | ||||
| 76 | { | ||||
| 77 | accessor => "col_branchcode", | ||||
| 78 | data_type => "varchar", | ||||
| 79 | is_foreign_key => 1, | ||||
| 80 | is_nullable => 1, | ||||
| 81 | size => 10, | ||||
| 82 | }, | ||||
| 83 | ); | ||||
| 84 | |||||
| 85 | =head1 PRIMARY KEY | ||||
| 86 | |||||
| 87 | =over 4 | ||||
| 88 | |||||
| 89 | =item * L</colId> | ||||
| 90 | |||||
| 91 | =back | ||||
| 92 | |||||
| 93 | =cut | ||||
| 94 | |||||
| 95 | 1 | 28µs | 1 | 123µs | __PACKAGE__->set_primary_key("colId"); # spent 123µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 96 | |||||
| 97 | =head1 RELATIONS | ||||
| 98 | |||||
| 99 | =head2 col_branchcode | ||||
| 100 | |||||
| 101 | Type: belongs_to | ||||
| 102 | |||||
| 103 | Related object: L<Koha::Schema::Result::Branch> | ||||
| 104 | |||||
| 105 | =cut | ||||
| 106 | |||||
| 107 | 1 | 13µs | 1 | 349µs | __PACKAGE__->belongs_to( # spent 349µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 108 | "col_branchcode", | ||||
| 109 | "Koha::Schema::Result::Branch", | ||||
| 110 | { branchcode => "colBranchcode" }, | ||||
| 111 | { | ||||
| 112 | is_deferrable => 1, | ||||
| 113 | join_type => "LEFT", | ||||
| 114 | on_delete => "CASCADE", | ||||
| 115 | on_update => "CASCADE", | ||||
| 116 | }, | ||||
| 117 | ); | ||||
| 118 | |||||
| 119 | |||||
| 120 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-06 15:26:36 | ||||
| 121 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gb7EYny5ULsZw8rYQQ/hjA | ||||
| 122 | |||||
| 123 | |||||
| 124 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 125 | 1 | 12µs | 1; |