[DBIx-Class-Devel] [dbix-class] Ability to override cascade_copy when calling Row->copy (#58)

Dagfinn Ilmari Mannsåker notifications at github.com
Wed Aug 27 10:34:56 GMT 2014


> @@ -1119,7 +1119,7 @@ sub set_inflated_columns {
>  
>  =head2 copy
>  
> -  my $copy = $orig->copy({ change => $to, ... });
> +  my $copy = $orig->copy({ change => $to, ... }, $dont_cascade?);

This is a very limited (and limiting, extensibility-wise) API. I suggest a hash ref with `{ cascade => { rel_one => 1, rel_two => 0 } }`, so you can override both ways (rels not mentioned in the `cascade` hash maintain the value specified in their definition, and one can add more options in future.

---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class/pull/58/files#r16767684
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20140827/35245a7a/attachment-0001.htm>


More information about the DBIx-Class-Devel mailing list