my $cursor = $shift_rs->search ({}, { order_by => { "-$ord", $position_column }, columns => \@pcols } )->cursor;
my $rs = $self->result_source->resultset;
- my @all_pks = $cusrsor->all;
+ my @all_pks = $cursor->all;
while (my $pks = shift @all_pks) {
my $cond;
for my $i (0.. $#pcols) {
$target_class ||= $class;
my ($pri, $too_many) = eval { $target_class->_pri_cols };
$class->throw_exception(
- "Can't infer join condition for ${rel} on ${target_class}: $@"
+ "Can't infer join condition on ${target_class}: $@"
) if $@;
$class->throw_exception(
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(@_);
}