X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FCDBICompat%2FLazyLoading.pm;fp=lib%2FDBIx%2FClass%2FCDBICompat%2FLazyLoading.pm;h=6a33eff2393d3c3a96ca800a8282be8206967222;hb=8d5134b09734852f9c11a3fd6b1c8f6551637b53;hp=8e2c2ae2e2317a30ae7ccc4a53cff6b8f8264087;hpb=656796f2088da66cc80f4eb127c39c923ef3c1dd;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/CDBICompat/LazyLoading.pm b/lib/DBIx/Class/CDBICompat/LazyLoading.pm index 8e2c2ae..6a33eff 100644 --- a/lib/DBIx/Class/CDBICompat/LazyLoading.pm +++ b/lib/DBIx/Class/CDBICompat/LazyLoading.pm @@ -10,7 +10,7 @@ sub _select_columns { sub get_column { my ($self, $col) = @_; if ((ref $self) && (!exists $self->{'_column_data'}{$col}) - && $self->{'_in_database'}) { + && $self->{'_in_storage'}) { $self->_flesh(grep { exists $self->_column_groups->{$_}{$col} && $_ ne 'All' } keys %{ $self->_column_groups || {} });