View | Details | Raw Unified | Return to bug 39438
Collapse All | Expand All

(-)a/Koha/Schema/Result/ErmAgreementPeriod.pm (-1 / +33 lines)
Lines 120-125 __PACKAGE__->belongs_to( Link Here
120
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-25 11:46:59
120
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-25 11:46:59
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NCQpSw+rp/9B/yOrtLtK6g
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NCQpSw+rp/9B/yOrtLtK6g
122
122
123
__PACKAGE__->has_many(
124
    "additional_field_values",
125
    "Koha::Schema::Result::AdditionalFieldValue",
126
    sub {
127
        my ($args) = @_;
128
129
        return {
130
            "$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.agreement_period_id" },
131
132
            "$args->{foreign_alias}.field_id" =>
133
                { -in => \'(SELECT id FROM additional_fields WHERE tablename="erm_agreement_periods")' },
134
        };
135
    },
136
    { cascade_copy => 0, cascade_delete => 0 },
137
);
138
139
__PACKAGE__->has_many(
140
    "extended_attributes",
141
    "Koha::Schema::Result::AdditionalFieldValue",
142
    sub {
143
        my ($args) = @_;
144
145
        return {
146
            "$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.agreement_period_id" },
147
148
            "$args->{foreign_alias}.field_id" =>
149
                { -in => \'(SELECT id FROM additional_fields WHERE tablename="erm_agreement_periods")' },
150
        };
151
    },
152
    { cascade_copy => 0, cascade_delete => 0 },
153
);
154
155
123
=head2 koha_object_class
156
=head2 koha_object_class
124
157
125
Missing POD for koha_object_class.
158
Missing POD for koha_object_class.
126
- 

Return to bug 39438