X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship%2FBase.pm;h=35ae568eb183efe8289ff8fd5f0d92240695fe6b;hb=b7bbc39f79d4f179f85ef655981bdb68411f0a2a;hp=b4984e72e65ece4fcdc7ee4a38fc76d40eb775ff;hpb=cee0c9b187a09934aa46cafb2d1cc78a1b6e9eae;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Relationship/Base.pm b/lib/DBIx/Class/Relationship/Base.pm index b4984e7..35ae568 100644 --- a/lib/DBIx/Class/Relationship/Base.pm +++ b/lib/DBIx/Class/Relationship/Base.pm @@ -127,14 +127,17 @@ of when to create constraints. If C is true on a C relationship for an object, then when you copy the object all the related objects will be copied too. To turn this behaviour off, pass C<< cascade_copy => 0 >> -in the C<$attr> hashref. The behaviour defaults to C<< cascade_copy => 1 >>. +in the C<$attr> hashref. + +The behaviour defaults to C<< cascade_copy => 1 >> for C +relationships. =item cascade_delete -By default, DBIx::Class cascades deletes across C and -C relationships. You can disable this behaviour on a -per-relationship basis by supplying C<< cascade_delete => 0 >> in the -relationship attributes. +By default, DBIx::Class cascades deletes across C, +C and C relationships. You can disable this +behaviour on a per-relationship basis by supplying +C<< cascade_delete => 0 >> in the relationship attributes. The cascaded operations are performed after the requested delete, so if your database has a constraint on the relationship, it will @@ -143,10 +146,10 @@ before DBIx::Class gets to perform the cascaded operation. =item cascade_update -By default, DBIx::Class cascades updates across C and +By default, DBIx::Class cascades updates across C and C relationships. You can disable this behaviour on a -per-relationship basis by supplying C<< cascade_update => 0 >> in the -relationship attributes. +per-relationship basis by supplying C<< cascade_update => 0 >> in +the relationship attributes. This is not a RDMS style cascade update - it purely means that when an object has update called on it, all the related objects also