[Bast-commits] r3724 - DBIx-Class/0.08/trunk/lib/DBIx/Class
castaway at dev.catalyst.perl.org
castaway at dev.catalyst.perl.org
Thu Sep 6 22:35:49 GMT 2007
Author: castaway
Date: 2007-09-06 22:35:49 +0100 (Thu, 06 Sep 2007)
New Revision: 3724
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm
Log:
Add more about accessors to doc
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm 2007-09-06 20:07:52 UTC (rev 3723)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm 2007-09-06 21:35:49 UTC (rev 3724)
@@ -81,6 +81,10 @@
the hashref as the column_info for that column. Repeated calls of this
method will add more columns, not replace them.
+The column names given will be created as accessor methods on your
+L<DBIx::Class::Row> objects, you can change the name of the accessor
+by supplying an L</accessor> in the column_info hash.
+
The contents of the column_info are not set in stone. The following
keys are currently recognised/used by DBIx::Class:
@@ -88,7 +92,7 @@
=item accessor
-Use this to set the name of the accessor for this column. If unset,
+Use this to set the name of the accessor method for this column. If unset,
the name of the column will be used.
=item data_type
More information about the Bast-commits
mailing list