# update or create
if ($obj) {
# We have something to edit
- eval { $obj->update_from_cgi( $r => {
+ eval { $obj->update_from_cgi( $h => {
required => $required_cols,
ignore => $ignored_cols,
});
$fatal = $@;
} else {
eval {
- $obj = $self->create_from_cgi( $r => {
+ $obj = $self->create_from_cgi( $h => {
required => $required_cols,
ignore => $ignored_cols,
} );
if ( !%values ) { return $self->list($r) }
my $order = $self->order($r);
$self = $self->do_pager($r);
+
+ # FIXME: use pager info to get slice of iterator instead of all the objects as array
+
$r->objects(
[
$self->search_where(
=head1 SEE ALSO
-L<Maypole>, L<Maypole::Model::CDBI::Base>.
+L<Maypole>, L<Maypole::Model::Base>.
=head1 AUTHOR