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

(-)a/Koha/Object.pm (-13 lines)
Lines 846-864 sub _get_object_class { Link Here
846
    return ${type};
846
    return ${type};
847
}
847
}
848
848
849
sub _get_objects_class {
850
    my ( $self ) = @_;
851
    return unless $self;
852
853
    if ( $self->_result->can('koha_objects_class') ) {
854
        return $self->_result->koha_objects_class;
855
    }
856
    my $type = ref($self);
857
858
    $type =~ s|Schema::Result::||;
859
    return $type . "s";
860
}
861
862
=head3 AUTOLOAD
849
=head3 AUTOLOAD
863
850
864
The autoload method is used only to get and set values for an objects properties.
851
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