aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/InterfaceModel/Reflector/DBIC.pm
diff options
context:
space:
mode:
authoromega <omega@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-06-22 18:50:25 +0000
committeromega <omega@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-06-22 18:50:25 +0000
commit888532d3340836e468a5572c44893f58e0202ed5 (patch)
treeefba09fcb270fd7c02712c9be12c8ee671500f34 /lib/Reaction/InterfaceModel/Reflector/DBIC.pm
parent6f51eb8562a023cd9ddf6a2ad09f0f416673b079 (diff)
downloadreaction-888532d3340836e468a5572c44893f58e0202ed5.tar.gz
reaction-888532d3340836e468a5572c44893f58e0202ed5.zip
fix some merge problems
Diffstat (limited to 'lib/Reaction/InterfaceModel/Reflector/DBIC.pm')
-rw-r--r--lib/Reaction/InterfaceModel/Reflector/DBIC.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Reaction/InterfaceModel/Reflector/DBIC.pm b/lib/Reaction/InterfaceModel/Reflector/DBIC.pm
index ddd8899..41bb43f 100644
--- a/lib/Reaction/InterfaceModel/Reflector/DBIC.pm
+++ b/lib/Reaction/InterfaceModel/Reflector/DBIC.pm
@@ -688,7 +688,7 @@ class DBIC, which {
my \$rs = shift->${dm_name}->related_resultset('${attr_name}');
return ${isa}->new(_source_resultset => \$rs);
}";
- } elsif( $rel_accessor eq 'single') {
+ } elsif( $rel_accessor eq 'single' || $rel_accessor eq 'filter' ) {
#belongs_to
#type constraint is the foreign IM object, default inflates it
my $isa = $attr_opts{isa} = $self->class_name_from_source_name($parent_class, $rel_moniker);
@@ -735,7 +735,6 @@ class DBIC, which {
$attr_opts{isa} = $from_attr->_isa_metadata;
$attr_opts{default} = eval "sub{ shift->${dm_name}->${reader} }";
}
-
return \%attr_opts;
};