domain_model => $dm_name,
orig_attr_name => $source,
default => sub {
- $collection->new(_source_resultset => shift->$dm_name->resultset($source));
+ my $self = $_[0];
+ return $collection->new(
+ _source_resultset => $self->$dm_name->resultset($source),
+ _parent => $self,
+ );
},
);