[Bast-commits] r9323 -
DBIx-Class/0.08/trunk/lib/DBIx/Class/Relationship
nigel at dev.catalyst.perl.org
nigel at dev.catalyst.perl.org
Fri May 7 13:54:36 GMT 2010
Author: nigel
Date: 2010-05-07 14:54:36 +0100 (Fri, 07 May 2010)
New Revision: 9323
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/Relationship/Base.pm
Log:
Clarification to cascade_update attribute documentation
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Relationship/Base.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Relationship/Base.pm 2010-05-07 13:48:19 UTC (rev 9322)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Relationship/Base.pm 2010-05-07 13:54:36 UTC (rev 9323)
@@ -148,10 +148,10 @@
per-relationship basis by supplying C<< cascade_update => 0 >> in the
relationship attributes.
-The cascaded operations are performed after the requested update,
-so if your database has a constraint on the relationship, it will
-have updated/updated the related records or raised an exception
-before DBIx::Class gets to perform the cascaded operation.
+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
+have update called. It will not change foreign keys automatically -
+you must arrange to do this yourself.
=item on_delete / on_update
More information about the Bast-commits
mailing list