From: Matt S Trout Date: Sun, 16 Apr 2006 19:21:28 +0000 (+0000) Subject: disabled ->resultset caching X-Git-Tag: v0.06002~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=428c2b82657407ddf112950431b11216d559f420;p=dbsrgits%2FDBIx-Class.git disabled ->resultset caching --- diff --git a/Changes b/Changes index a39a047..f56beac 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for DBIx::Class 0.06002 + - nuke ResultSource caching of ->resultset for consistency reasons - fix for -and conditions when updating or deleting on a ResultSet 0.06001 2006-04-08 21:48:43 diff --git a/lib/DBIx/Class/ResultSource.pm b/lib/DBIx/Class/ResultSource.pm index 68d16b2..714353d 100644 --- a/lib/DBIx/Class/ResultSource.pm +++ b/lib/DBIx/Class/ResultSource.pm @@ -704,9 +704,14 @@ sub resultset { 'resultset does not take any arguments. If you want another resultset, '. 'call it on the schema instead.' ) if scalar @_; - return $self->{_resultset} - if ref $self->{_resultset} eq $self->resultset_class; - return $self->{_resultset} = $self->resultset_class->new( + + # disabled until we can figure out a way to do it without consistency issues + # + #return $self->{_resultset} + # if ref $self->{_resultset} eq $self->resultset_class; + #return $self->{_resultset} = + + return $self->resultset_class->new( $self, $self->{resultset_attributes} ); }