fixed pod for page config attribute
[catagits/Catalyst-Controller-DBIC-API.git] / lib / Catalyst / Controller / DBIC / API.pm
index e53ba6a..eeaecad 100644 (file)
@@ -767,13 +767,13 @@ sub update_object_relation
                 $self->update_object_relation($c, $row, delete $related_params->{$key}, $key);
             }
             # accessor = colname
-            elsif ($object->can($key)) {
-                $object->$key($value);
+            elsif ($row->can($key)) {
+                $row->$key($value);
             }
             # accessor != colname
             else {
-                my $accessor = $object->result_source->column_info($key)->{accessor};
-                $object->$accessor($value);
+                my $accessor = $row->result_source->column_info($key)->{accessor};
+                $row->$accessor($value);
             }
         }
         $row->update();
@@ -892,6 +892,12 @@ sub each_object_inflate
     return { $object->get_columns };
 }
 
+=method_protected serialize
+
+multiple actions forward to serialize which uses Catalyst::Action::Serialize.
+
+=cut
+
 # from Catalyst::Action::Serialize
 sub serialize :ActionClass('Serialize') { }
 
@@ -1057,7 +1063,7 @@ Arguments to pass to L<DBIx::Class::ResultSet/rows> when performing search for L
 
 =head3 page
 
-Arguments to pass to L<DBIx::Class::ResultSet/rows> when performing search for L</list>.
+Arguments to pass to L<DBIx::Class::ResultSet/page> when performing search for L</list>.
 
 =head1 EXTENDING