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