projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
e430cbe
)
added stringification example
Brian Cassidy [Thu, 29 Dec 2005 22:15:36 +0000 (22:15 +0000)]
lib/DBIx/Class/Manual/Cookbook.pod
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Manual/Cookbook.pod
b/lib/DBIx/Class/Manual/Cookbook.pod
index
9bdd280
..
c1fd262
100644
(file)
--- a/
lib/DBIx/Class/Manual/Cookbook.pod
+++ b/
lib/DBIx/Class/Manual/Cookbook.pod
@@
-122,4
+122,11
@@
It's as simple as overriding the C<new> method. Note the use of C<next::method>.
$class->next::method( $attrs );
}
+=head2 Stringification
+
+Deploy the standard stringification technique by using the C<overload> module. Replace
+C<foo> with the column/method of your choice.
+
+ use overload '""' => 'foo', fallback => 1;
+
=back