[Bast-commits] r7404 - DBIx-Class/0.08/trunk/lib/DBIx/Class

ribasushi at dev.catalyst.perl.org ribasushi at dev.catalyst.perl.org
Fri Aug 28 14:34:47 GMT 2009


Author: ribasushi
Date: 2009-08-28 14:34:46 +0000 (Fri, 28 Aug 2009)
New Revision: 7404

Modified:
   DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm
Log:
Warning to spare mst explanations

Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm	2009-08-27 22:11:29 UTC (rev 7403)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm	2009-08-28 14:34:46 UTC (rev 7404)
@@ -2278,6 +2278,19 @@
     }
   });
 
+=over
+
+=item WARNING
+
+When subclassing ResultSet never attempt to override this method. Since
+it is a simple shortcut for C<< $self->new_result($attrs)->insert >>, a
+lot of the internals simply never call it, so your override will be
+bypassed more often than not. Override either L<new|DBIx::Class::Row/new>
+or L<insert|DBIx::Class::Row/insert> depending on how early in the
+L</create> process you need to intervene.
+
+=back
+
 =cut
 
 sub create {




More information about the Bast-commits mailing list