->exception_action
- columns_info_for is deprecated, and no longer runs automatically.
You can make it work like before via
- __PACKAGE__->load_column_info_from_storage for now
+ __PACKAGE__->column_info_from_storage(1) for now
0.07002
- cleared up Relationship docs, and fixed some typos
return $self->_columns->{$column};
}
-=head2 load_column_info_from_storage
+=head2 column_info_from_storage
Enables the on-demand automatic loading of the above column
metadata from storage as neccesary. This is *deprecated*, and
should not be used. It will be removed before 1.0.
-=cut
-
-sub load_column_info_from_storage { shift->column_info_from_storage(1) }
+ __PACKAGE__->column_info_from_storage(1);
=head2 columns
shift->result_source_instance->column_info(@_);
}
-sub load_column_info_from_storage {
- shift->result_source_instance->load_column_info_from_storage;
+sub column_info_from_storage {
+ shift->result_source_instance->column_info_from_storage(@_);
}
sub columns {
# test column_info
{
$schema->source("Artist")->{_columns}{'artistid'} = {};
- $schema->source("Artist")->load_column_info_from_storage;
+ $schema->source("Artist")->column_info_from_storage(1);
my $typeinfo = $schema->source("Artist")->column_info('artistid');
is($typeinfo->{data_type}, 'INTEGER', 'column_info ok');
__PACKAGE__->load_components(qw/PK::Auto Core/);
__PACKAGE__->table('casecheck');
__PACKAGE__->add_columns(qw/id name NAME uc_name/);
- __PACKAGE__->load_column_info_from_storage;
+ __PACKAGE__->column_info_from_storage(1);
__PACKAGE__->set_primary_key('id');
}