[Bast-commits] r6670 - DBIx-Class/0.08/trunk/lib/DBIx/Class
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Sun Jun 14 09:00:35 GMT 2009
Author: ribasushi
Date: 2009-06-14 09:00:35 +0000 (Sun, 14 Jun 2009)
New Revision: 6670
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/Row.pm
Log:
Lapse in copy() docs
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Row.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Row.pm 2009-06-14 08:27:49 UTC (rev 6669)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Row.pm 2009-06-14 09:00:35 UTC (rev 6670)
@@ -911,7 +911,11 @@
Inserts a new row into the database, as a copy of the original
object. If a hashref of replacement data is supplied, these will take
-precedence over data in the original.
+precedence over data in the original. Also any columns which have
+the L<column info attribute|DBIx::Class::ResultSource/add_columns>
+C<< is_auto_increment => 1 >> are explicitly removed before the copy,
+so that the database can insert its own autoincremented values into
+the new object.
Relationships will be followed by the copy procedure B<only> if the
relationship specifes a true value for its
More information about the Bast-commits
mailing list