| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/SubscriptionFrequency.pm |
| Statements | Executed 13 statements in 530µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 38µs | 43µs | Class::C3::Componentised::BEGIN@1.2050 |
| 1 | 1 | 1 | 13µs | 98µs | Koha::Schema::Result::SubscriptionFrequency::BEGIN@16 |
| 1 | 1 | 1 | 12µs | 26µs | Koha::Schema::Result::SubscriptionFrequency::BEGIN@13 |
| 1 | 1 | 1 | 11µs | 21µs | Koha::Schema::Result::SubscriptionFrequency::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 85µs | 2 | 48µs | # spent 43µs (38+5) within Class::C3::Componentised::BEGIN@1.2050 which was called:
# once (38µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 43µs making 1 call to Class::C3::Componentised::BEGIN@1.2050
# spent 5µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::SubscriptionFrequency; | ||||
| 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::SubscriptionFrequency | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 46µs | 2 | 39µs | # spent 26µs (12+14) within Koha::Schema::Result::SubscriptionFrequency::BEGIN@13 which was called:
# once (12µs+14µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 26µs making 1 call to Koha::Schema::Result::SubscriptionFrequency::BEGIN@13
# spent 14µs making 1 call to strict::import |
| 14 | 2 | 46µs | 2 | 31µs | # spent 21µs (11+10) within Koha::Schema::Result::SubscriptionFrequency::BEGIN@14 which was called:
# once (11µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 21µs making 1 call to Koha::Schema::Result::SubscriptionFrequency::BEGIN@14
# spent 10µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 258µs | 2 | 184µs | # spent 98µs (13+85) within Koha::Schema::Result::SubscriptionFrequency::BEGIN@16 which was called:
# once (13µs+85µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 98µs making 1 call to Koha::Schema::Result::SubscriptionFrequency::BEGIN@16
# spent 85µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<subscription_frequencies> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 35µs | 1 | 344µs | __PACKAGE__->table("subscription_frequencies"); # spent 344µ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 description | ||||
| 33 | |||||
| 34 | data_type: 'text' | ||||
| 35 | is_nullable: 0 | ||||
| 36 | |||||
| 37 | =head2 displayorder | ||||
| 38 | |||||
| 39 | data_type: 'integer' | ||||
| 40 | is_nullable: 1 | ||||
| 41 | |||||
| 42 | =head2 unit | ||||
| 43 | |||||
| 44 | data_type: 'enum' | ||||
| 45 | extra: {list => ["day","week","month","year"]} | ||||
| 46 | is_nullable: 1 | ||||
| 47 | |||||
| 48 | =head2 unitsperissue | ||||
| 49 | |||||
| 50 | data_type: 'integer' | ||||
| 51 | default_value: 1 | ||||
| 52 | is_nullable: 0 | ||||
| 53 | |||||
| 54 | =head2 issuesperunit | ||||
| 55 | |||||
| 56 | data_type: 'integer' | ||||
| 57 | default_value: 1 | ||||
| 58 | is_nullable: 0 | ||||
| 59 | |||||
| 60 | =cut | ||||
| 61 | |||||
| 62 | 1 | 23µs | 1 | 2.62ms | __PACKAGE__->add_columns( # spent 2.62ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 63 | "id", | ||||
| 64 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 65 | "description", | ||||
| 66 | { data_type => "text", is_nullable => 0 }, | ||||
| 67 | "displayorder", | ||||
| 68 | { data_type => "integer", is_nullable => 1 }, | ||||
| 69 | "unit", | ||||
| 70 | { | ||||
| 71 | data_type => "enum", | ||||
| 72 | extra => { list => ["day", "week", "month", "year"] }, | ||||
| 73 | is_nullable => 1, | ||||
| 74 | }, | ||||
| 75 | "unitsperissue", | ||||
| 76 | { data_type => "integer", default_value => 1, is_nullable => 0 }, | ||||
| 77 | "issuesperunit", | ||||
| 78 | { data_type => "integer", default_value => 1, is_nullable => 0 }, | ||||
| 79 | ); | ||||
| 80 | |||||
| 81 | =head1 PRIMARY KEY | ||||
| 82 | |||||
| 83 | =over 4 | ||||
| 84 | |||||
| 85 | =item * L</id> | ||||
| 86 | |||||
| 87 | =back | ||||
| 88 | |||||
| 89 | =cut | ||||
| 90 | |||||
| 91 | 1 | 16µs | 1 | 81µs | __PACKAGE__->set_primary_key("id"); # spent 81µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 92 | |||||
| 93 | =head1 RELATIONS | ||||
| 94 | |||||
| 95 | =head2 subscriptions | ||||
| 96 | |||||
| 97 | Type: has_many | ||||
| 98 | |||||
| 99 | Related object: L<Koha::Schema::Result::Subscription> | ||||
| 100 | |||||
| 101 | =cut | ||||
| 102 | |||||
| 103 | 1 | 9µs | 1 | 484µs | __PACKAGE__->has_many( # spent 484µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
| 104 | "subscriptions", | ||||
| 105 | "Koha::Schema::Result::Subscription", | ||||
| 106 | { "foreign.periodicity" => "self.id" }, | ||||
| 107 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 108 | ); | ||||
| 109 | |||||
| 110 | |||||
| 111 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-30 02:42:01 | ||||
| 112 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kOm4+reRTMxUBfVJl4UPig | ||||
| 113 | |||||
| 114 | |||||
| 115 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||||
| 116 | 1 | 11µs | 1; |