X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship.pm;h=cd4b6cd2a9695b29cf71999cb338d9923877b6e6;hb=f4e92c39e31f23c921d17a4e242c1ec9a1068a6e;hp=9edd7af5dcf0ffdf99964b6707714c2f27ffd868;hpb=458e02924eea223d6aa49bf45abbb7fdd05d909f;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Relationship.pm b/lib/DBIx/Class/Relationship.pm index 9edd7af..cd4b6cd 100644 --- a/lib/DBIx/Class/Relationship.pm +++ b/lib/DBIx/Class/Relationship.pm @@ -271,6 +271,11 @@ pass C<< cascade_delete => 0 >> in the C<$attr> hashref. However, any database-level cascade or restrict will take precedence over a DBIx-Class-based cascading delete. +If you copy an object in a class with a C relationship, all +the related objects will be copied as well. To turn this behaviour off, +pass C 0 > in the C<$attr> hashref. The behaviour +defaults to C 1>. + See L for documentation on relationship methods and valid relationship attributes.