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