result_source must be passed to new_result
Matt S Trout [Sat, 19 May 2007 15:05:13 +0000 (15:05 +0000)]
lib/DBIx/Class/ResultSet.pm

index 39ca196..58a411a 100644 (file)
@@ -1311,7 +1311,8 @@ sub new_result {
   my %new = (
     %{ $self->_remove_alias($values, $alias) },
     %{ $self->_remove_alias($collapsed_cond, $alias) },
-    -source_handle => $self->_source_handle
+    -source_handle => $self->_source_handle,
+    -result_source => $self->result_source, # DO NOT REMOVE THIS, REQUIRED
   );
 
   return $self->result_class->new(\%new);