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

(-)a/Koha/Object.pm (-13 lines)
Lines 896-914 sub _get_object_class { Link Here
896
    return ${type};
896
    return ${type};
897
}
897
}
898
898
899
sub _get_objects_class {
900
    my ( $self ) = @_;
901
    return unless $self;
902
903
    if ( $self->_result->can('koha_objects_class') ) {
904
        return $self->_result->koha_objects_class;
905
    }
906
    my $type = ref($self);
907
908
    $type =~ s|Schema::Result::||;
909
    return $type . "s";
910
}
911
912
=head3 AUTOLOAD
899
=head3 AUTOLOAD
913
900
914
The autoload method is used only to get and set values for an objects properties.
901
The autoload method is used only to get and set values for an objects properties.
(-)a/Koha/Objects.pm (-16 lines)
Lines 142-162 sub search { Link Here
142
    return $class->_new_from_dbic($rs);
142
    return $class->_new_from_dbic($rs);
143
}
143
}
144
144
145
=head3 search_limited
146
147
    my $rs = $self->search_limited
148
149
Generic method that is just a pass through for I<search>. It is expected to be overloaded
150
locally on classes. It's main purpose is to avoid the need to check if the class implements
151
the method locally.
152
153
=cut
154
155
sub search_limited {
156
    my ( $self, $params, $attributes ) = @_;
157
    return $self->search( $params, $attributes );
158
}
159
160
=head3 search_related
145
=head3 search_related
161
146
162
    my $objects = Koha::Objects->search_related( $rel_name, $cond?, \%attrs? );
147
    my $objects = Koha::Objects->search_related( $rel_name, $cond?, \%attrs? );
163
- 

Return to bug 29523