| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/CourseItem.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 116µs | 127µs | Class::C3::Componentised::BEGIN@1.1264 |
| 1 | 1 | 1 | 26µs | 36µs | Koha::Schema::Result::CourseItem::BEGIN@14 |
| 1 | 1 | 1 | 26µs | 48µs | Koha::Schema::Result::CourseItem::BEGIN@13 |
| 1 | 1 | 1 | 16µs | 97µs | Koha::Schema::Result::CourseItem::BEGIN@16 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 138µs | # spent 127µs (116+11) within Class::C3::Componentised::BEGIN@1.1264 which was called:
# once (116µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 127µs making 1 call to Class::C3::Componentised::BEGIN@1.1264
# spent 11µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::CourseItem; | ||||
| 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::CourseItem | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 71µs | # spent 48µs (26+23) within Koha::Schema::Result::CourseItem::BEGIN@13 which was called:
# once (26µs+23µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 48µs making 1 call to Koha::Schema::Result::CourseItem::BEGIN@13
# spent 23µs making 1 call to strict::import | ||
| 14 | 2 | 45µs | # spent 36µs (26+10) within Koha::Schema::Result::CourseItem::BEGIN@14 which was called:
# once (26µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 36µs making 1 call to Koha::Schema::Result::CourseItem::BEGIN@14
# spent 10µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 178µs | # spent 97µs (16+81) within Koha::Schema::Result::CourseItem::BEGIN@16 which was called:
# once (16µs+81µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 97µs making 1 call to Koha::Schema::Result::CourseItem::BEGIN@16
# spent 81µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<course_items> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 333µs | __PACKAGE__->table("course_items"); # spent 333µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 ci_id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 itemnumber | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 itype | ||||
| 39 | |||||
| 40 | data_type: 'varchar' | ||||
| 41 | is_nullable: 1 | ||||
| 42 | size: 10 | ||||
| 43 | |||||
| 44 | =head2 ccode | ||||
| 45 | |||||
| 46 | data_type: 'varchar' | ||||
| 47 | is_nullable: 1 | ||||
| 48 | size: 10 | ||||
| 49 | |||||
| 50 | =head2 holdingbranch | ||||
| 51 | |||||
| 52 | data_type: 'varchar' | ||||
| 53 | is_foreign_key: 1 | ||||
| 54 | is_nullable: 1 | ||||
| 55 | size: 10 | ||||
| 56 | |||||
| 57 | =head2 location | ||||
| 58 | |||||
| 59 | data_type: 'varchar' | ||||
| 60 | is_nullable: 1 | ||||
| 61 | size: 80 | ||||
| 62 | |||||
| 63 | =head2 enabled | ||||
| 64 | |||||
| 65 | data_type: 'enum' | ||||
| 66 | default_value: 'no' | ||||
| 67 | extra: {list => ["yes","no"]} | ||||
| 68 | is_nullable: 0 | ||||
| 69 | |||||
| 70 | =head2 timestamp | ||||
| 71 | |||||
| 72 | data_type: 'timestamp' | ||||
| 73 | datetime_undef_if_invalid: 1 | ||||
| 74 | default_value: current_timestamp | ||||
| 75 | is_nullable: 0 | ||||
| 76 | |||||
| 77 | =cut | ||||
| 78 | |||||
| 79 | 1 | 1.27ms | __PACKAGE__->add_columns( # spent 1.27ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 80 | "ci_id", | ||||
| 81 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 82 | "itemnumber", | ||||
| 83 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 84 | "itype", | ||||
| 85 | { data_type => "varchar", is_nullable => 1, size => 10 }, | ||||
| 86 | "ccode", | ||||
| 87 | { data_type => "varchar", is_nullable => 1, size => 10 }, | ||||
| 88 | "holdingbranch", | ||||
| 89 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, | ||||
| 90 | "location", | ||||
| 91 | { data_type => "varchar", is_nullable => 1, size => 80 }, | ||||
| 92 | "enabled", | ||||
| 93 | { | ||||
| 94 | data_type => "enum", | ||||
| 95 | default_value => "no", | ||||
| 96 | extra => { list => ["yes", "no"] }, | ||||
| 97 | is_nullable => 0, | ||||
| 98 | }, | ||||
| 99 | "timestamp", | ||||
| 100 | { | ||||
| 101 | data_type => "timestamp", | ||||
| 102 | datetime_undef_if_invalid => 1, | ||||
| 103 | default_value => \"current_timestamp", | ||||
| 104 | is_nullable => 0, | ||||
| 105 | }, | ||||
| 106 | ); | ||||
| 107 | |||||
| 108 | =head1 PRIMARY KEY | ||||
| 109 | |||||
| 110 | =over 4 | ||||
| 111 | |||||
| 112 | =item * L</ci_id> | ||||
| 113 | |||||
| 114 | =back | ||||
| 115 | |||||
| 116 | =cut | ||||
| 117 | |||||
| 118 | 1 | 78µs | __PACKAGE__->set_primary_key("ci_id"); # spent 78µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 119 | |||||
| 120 | =head1 UNIQUE CONSTRAINTS | ||||
| 121 | |||||
| 122 | =head2 C<itemnumber> | ||||
| 123 | |||||
| 124 | =over 4 | ||||
| 125 | |||||
| 126 | =item * L</itemnumber> | ||||
| 127 | |||||
| 128 | =back | ||||
| 129 | |||||
| 130 | =cut | ||||
| 131 | |||||
| 132 | 1 | 26µs | __PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]); # spent 26µs making 1 call to DBIx::Class::ResultSourceProxy::add_unique_constraint | ||
| 133 | |||||
| 134 | =head1 RELATIONS | ||||
| 135 | |||||
| 136 | =head2 course_reserves | ||||
| 137 | |||||
| 138 | Type: has_many | ||||
| 139 | |||||
| 140 | Related object: L<Koha::Schema::Result::CourseReserve> | ||||
| 141 | |||||
| 142 | =cut | ||||
| 143 | |||||
| 144 | 1 | 329µs | __PACKAGE__->has_many( # spent 329µs making 1 call to DBIx::Class::Relationship::HasMany::has_many | ||
| 145 | "course_reserves", | ||||
| 146 | "Koha::Schema::Result::CourseReserve", | ||||
| 147 | { "foreign.ci_id" => "self.ci_id" }, | ||||
| 148 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 149 | ); | ||||
| 150 | |||||
| 151 | =head2 holdingbranch | ||||
| 152 | |||||
| 153 | Type: belongs_to | ||||
| 154 | |||||
| 155 | Related object: L<Koha::Schema::Result::Branch> | ||||
| 156 | |||||
| 157 | =cut | ||||
| 158 | |||||
| 159 | 1 | 799µs | __PACKAGE__->belongs_to( # spent 799µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 160 | "holdingbranch", | ||||
| 161 | "Koha::Schema::Result::Branch", | ||||
| 162 | { branchcode => "holdingbranch" }, | ||||
| 163 | { | ||||
| 164 | is_deferrable => 1, | ||||
| 165 | join_type => "LEFT", | ||||
| 166 | on_delete => "CASCADE", | ||||
| 167 | on_update => "CASCADE", | ||||
| 168 | }, | ||||
| 169 | ); | ||||
| 170 | |||||
| 171 | =head2 itemnumber | ||||
| 172 | |||||
| 173 | Type: belongs_to | ||||
| 174 | |||||
| 175 | Related object: L<Koha::Schema::Result::Item> | ||||
| 176 | |||||
| 177 | =cut | ||||
| 178 | |||||
| 179 | 1 | 326µs | __PACKAGE__->belongs_to( # spent 326µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 180 | "itemnumber", | ||||
| 181 | "Koha::Schema::Result::Item", | ||||
| 182 | { itemnumber => "itemnumber" }, | ||||
| 183 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 184 | ); | ||||
| 185 | |||||
| 186 | |||||
| 187 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-09-02 09:46:54 | ||||
| 188 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g5lEeHNvnM4KIb6AJUxDOw | ||||
| 189 | |||||
| 190 | |||||
| 191 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 192 | 1; |