use warnings;
use base qw/DBIx::Class/;
+use Scalar::Util qw/blessed/;
+use Carp::Clan qw/^DBIx::Class/;
sub iterator_class { shift->result_source_instance->resultset_class(@_) }
sub resultset_class { shift->result_source_instance->resultset_class(@_) }
-sub source_name { shift->result_source_instance->source_name(@_) }
+sub result_class { shift->result_source_instance->result_class(@_) }
+sub source_info { shift->result_source_instance->source_info(@_) }
+
+sub set_inherited_ro_instance {
+ my $self = shift;
+
+ croak "Cannot set @{[shift]} on an instance" if blessed $self;
+
+ return $self->set_inherited(@_);
+}
+
+sub get_inherited_ro_instance {
+ return shift->get_inherited(@_);
+}
+
+__PACKAGE__->mk_group_accessors('inherited_ro_instance' => 'source_name');
+
sub resultset_attributes {
shift->result_source_instance->resultset_attributes(@_);
}
}
-*add_column = \&add_columns;
+sub add_column {
+ shift->add_columns(@_);
+}
sub has_column {
- my ($self, $column) = @_;
- return $self->result_source_instance->has_column($column);
+ shift->result_source_instance->has_column(@_);
}
sub column_info {
- my ($self, $column) = @_;
- return $self->result_source_instance->column_info($column);
+ 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 {
- return shift->result_source_instance->columns(@_);
+ shift->result_source_instance->columns(@_);
}
sub remove_columns {
- return shift->result_source_instance->remove_columns(@_);
+ shift->result_source_instance->remove_columns(@_);
}
*remove_column = \&remove_columns;
shift->result_source_instance->primary_columns(@_);
}
+sub _pri_cols {
+ shift->result_source_instance->_pri_cols(@_);
+}
+
sub add_unique_constraint {
shift->result_source_instance->add_unique_constraint(@_);
}
shift->result_source_instance->relationship_info(@_);
}
+sub has_relationship {
+ shift->result_source_instance->has_relationship(@_);
+}
1;