Subject: | prefetch not working |
See attached file for complete demonstration with all needed files.
Basically, I do this:
my @des = $schema->resultset('Dataelementstate')->search({ ... }, { join
=> 'dataelement', prefetch => 'dataelement' });
my $estate = $des[0];
my $element = $estate->dataelement;
In 0.08192 and 0.08196 (the only 2 older versions I've used) this works
as expected, and $element is a defined instance.
In 0.08198 $element is undef.
My test script output (in the attached file) shows that the SQL
generated is the same for 0.08198 and 0.08192, but 0.08198 does not fill
in the $estate->{related_resultsets}->{dataelement}->{all_cache} array,
and $estate->{_inflated_column}->{dataelement} is undef.
Removing the prefetch from the search lets $estate->dataelement return
the object normally in 0.08198. But with the prefetch, 0.08198 prevents
you getting the dataelement instance.
Subject: | dbix_class_bug_report.tar.gz |
Message body not shown because it is not plain text.