return defined($linked_object) ? 1 : 0;
}
=head2 koha_objects_class
Missing POD for koha_objects_class.
=cut
sub koha_objects_class {
'Koha::Account::Links';
=head2 koha_object_class
Missing POD for koha_object_class.
sub koha_object_class {
'Koha::Account::Link';
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
);
__PACKAGE__->has_many(
"accountline_links",
"Koha::Schema::Result::AccountlineLink",
sub {
my ($args) = @_;
return {
"$args->{foreign_alias}.link_type" => 'hold',
"$args->{foreign_alias}.linked_id" => { '=' => { -ident => "$args->{self_alias}.reserve_id" } },
};
},
{ cascade_copy => 0, cascade_delete => 0 },
-