$self->throw_exception( "No relationship to JOIN from ${from_class} to ${to_class}" )
unless $rel_obj;
my $join = $from_class->storage->sql_maker->_join_condition(
- $from_class->result_source_instance->_resolve_condition(
- $rel_obj->{cond}, $to, $from) );
+ scalar $from_class->result_source_instance->_resolve_condition(
+ $rel_obj->{cond}, $to, $from
+ )
+ );
return $join;
}
-alias => $as,
-relation_chain_depth => $seen->{-relation_chain_depth} || 0,
},
- $self->_resolve_condition($rel_info->{cond}, $as, $alias, $join)
+ scalar $self->_resolve_condition($rel_info->{cond}, $as, $alias, $join)
];
}
}
"$args->{foreign_alias}.position" => { '>' => { -ident => "$args->{self_alias}.position" } },
},
$args->{self_rowobj} && {
- "$args->{foreign_alias}.cd" => $args->{self_rowobj}->cd,
- "$args->{foreign_alias}.position" => { '>' => $args->{self_rowobj}->position },
+ "$args->{foreign_alias}.cd" => $args->{self_rowobj}->get_column('cd'),
+ "$args->{foreign_alias}.position" => { '>' => $args->{self_rowobj}->pos },
}
)
}