From: Peter Rabbitson Date: Fri, 28 Aug 2009 14:34:46 +0000 (+0000) Subject: Warning to spare mst explanations X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2c74a93a46d0913a25ac6574ec9a65edb0466931;p=dbsrgits%2FDBIx-Class-Historic.git Warning to spare mst explanations --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 7fa5aa1..a4a87d6 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -2278,6 +2278,19 @@ Cresultset. Note Hashref. } }); +=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 +or L depending on how early in the +L process you need to intervene. + +=back + =cut sub create {