- Unaliased "dark" selectors no longer throw off prefetch
- Fix proper composition of bind values across all possible
SQL areas ( group_by => \[ ... ] now works properly )
+ - Allow populate to skip empty has_many relationships which makes
+ it easier to pass HashRefInflator data directly to ->populate
* Misc
- Fix test warning on win32 - at this point the test suite is
bluefeet: Aran Deltac <bluefeet@cpan.org>
+bphillips: Brian Phillips <bphillips@cpan.org>
+
boghead: Bryan Beeley <cpan@beeley.org>
bricas: Brian Cassidy <bricas@cpan.org>
foreach my $item (@$data) {
foreach my $rel (@rels) {
- next unless $item->{$rel} && ref $item->{$rel} eq "ARRAY";
+ next unless ref $item->{$rel} eq "ARRAY" && @{ $item->{$rel} };
my $parent = $self->find({map { $_ => $item->{$_} } @pks})
|| $self->throw_exception('Cannot find the relating object.');
}])
} 'multicol-PK has_many populate works';
+lives_ok ( sub {
+ $schema->populate('CD', [
+ {cdid => 10001, artist => $artist->id, title => 'Pretty Much Empty', year => 2011, tracks => []},
+ ])
+}, 'empty has_many relationship accepted by populate');
+
done_testing;