From: Jess Robinson Date: Wed, 3 Mar 2010 22:33:07 +0000 (+0000) Subject: Added note+warning about how Ordered works, from steveo_aa X-Git-Tag: v0.08121~88 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=81aa430066ca206612dbcffda10a36d25d219491;p=dbsrgits%2FDBIx-Class.git Added note+warning about how Ordered works, from steveo_aa --- diff --git a/lib/DBIx/Class/Manual/Intro.pod b/lib/DBIx/Class/Manual/Intro.pod index 5414e08..55a7463 100644 --- a/lib/DBIx/Class/Manual/Intro.pod +++ b/lib/DBIx/Class/Manual/Intro.pod @@ -114,6 +114,10 @@ automatic row ordering: __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');