diff options
author | edenc <edenc@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-10-05 11:29:59 +0000 |
---|---|---|
committer | edenc <edenc@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-10-05 11:29:59 +0000 |
commit | 7b6797a0a3660459fbaef5afec5aa8022416f313 (patch) | |
tree | bc58446355ed449f387e8e18e2b27ba985c6d6a5 /lib/Reaction/InterfaceModel/Reflector/DBIC.pm | |
parent | fd0d07504404ef860efd800354fe4a0458f4570f (diff) | |
download | reaction-7b6797a0a3660459fbaef5afec5aa8022416f313.tar.gz reaction-7b6797a0a3660459fbaef5afec5aa8022416f313.zip |
added coercion option to reflector
Diffstat (limited to 'lib/Reaction/InterfaceModel/Reflector/DBIC.pm')
-rw-r--r-- | lib/Reaction/InterfaceModel/Reflector/DBIC.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Reaction/InterfaceModel/Reflector/DBIC.pm b/lib/Reaction/InterfaceModel/Reflector/DBIC.pm index 20cb424..afa3dad 100644 --- a/lib/Reaction/InterfaceModel/Reflector/DBIC.pm +++ b/lib/Reaction/InterfaceModel/Reflector/DBIC.pm @@ -661,6 +661,7 @@ sub parameters_for_source_object_attribute { domain_model => $dm_name, orig_attr_name => $attr_name, ); + $attr_opts{coerce} = 1 if $from_attr->should_coerce; #m2m / has_many my $m2m_meta; |