|
Lines 226-231
__PACKAGE__->has_many(
Link Here
|
| 226 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-12-20 14:44:11 |
226 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-12-20 14:44:11 |
| 227 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GDz6OIQippcVcKESfzNbDg |
227 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GDz6OIQippcVcKESfzNbDg |
| 228 |
|
228 |
|
|
|
229 |
__PACKAGE__->has_many( |
| 230 |
"additional_field_values", |
| 231 |
"Koha::Schema::Result::AdditionalFieldValue", |
| 232 |
sub { |
| 233 |
my ($args) = @_; |
| 234 |
|
| 235 |
return { |
| 236 |
"$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.id" }, |
| 237 |
|
| 238 |
"$args->{foreign_alias}.field_id" => |
| 239 |
{ -in => \'(SELECT id FROM additional_fields WHERE tablename="tickets")' }, |
| 240 |
}; |
| 241 |
}, |
| 242 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 243 |
); |
| 244 |
|
| 245 |
__PACKAGE__->has_many( |
| 246 |
"extended_attributes", |
| 247 |
"Koha::Schema::Result::AdditionalFieldValue", |
| 248 |
sub { |
| 249 |
my ($args) = @_; |
| 250 |
|
| 251 |
return { |
| 252 |
"$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.id" }, |
| 253 |
|
| 254 |
"$args->{foreign_alias}.field_id" => |
| 255 |
{ -in => \'(SELECT id FROM additional_fields WHERE tablename="tickets")' }, |
| 256 |
}; |
| 257 |
}, |
| 258 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 259 |
); |
| 229 |
|
260 |
|
| 230 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
261 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
| 231 |
1; |
262 |
1; |
| 232 |
- |
|
|