CatalystX-Eta
view release on metacpan or search on metacpan
lib/CatalystX/Temporal/Controller/AutoList.pm view on Meta::CPAN
{
prefetch => ['deleted_by']
}
);
}
my @rows;
# using all instead of next due DBIx::Class::ResultSet::_construct_results():
# Unable to properly collapse has_many results in iterator mode due to order criteria
# - performed an eager cursor slurp underneath.
# TODO: use while when no prefetch is needed. This may be naive to access, though
my @all_rows = $c->stash->{collection}->all;
foreach my $obj (@all_rows) {
my $data_row = $obj->$name->next;
my $data = $data_row ? $func->( $data_row, $self, $c, $obj ) : undef;
push @rows, {
created_at => $self->_ts_as_string( $obj->created_at ),
id => $obj->id,
( run in 0.257 second using v1.01-cache-2.11-cpan-4d50c553e7e )