[Bast-commits] r8857 - DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual

castaway at dev.catalyst.perl.org castaway at dev.catalyst.perl.org
Wed Mar 3 22:33:07 GMT 2010


Author: castaway
Date: 2010-03-03 22:33:07 +0000 (Wed, 03 Mar 2010)
New Revision: 8857

Modified:
   DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Intro.pod
Log:
Added note+warning about how Ordered works, from steveo_aa


Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Intro.pod
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Intro.pod	2010-03-03 22:07:40 UTC (rev 8856)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Intro.pod	2010-03-03 22:33:07 UTC (rev 8857)
@@ -114,6 +114,10 @@
   __PACKAGE__->load_components(qw/ Ordered /);
   __PACKAGE__->position_column('rank');
 
+Ordered will refer to a field called 'position' unless otherwise directed.  Here you are defining
+the ordering field to be named 'rank'.  (NOTE: Insert errors may occur if you use the Ordered 
+component, but have not defined a position column or have a 'position' field in your row.)
+
 Set the table for your class:
 
   __PACKAGE__->table('album');




More information about the Bast-commits mailing list