From: Jess Robinson Date: Thu, 18 May 2006 09:48:30 +0000 (+0000) Subject: Add pod for params of inflate/deflate coderefs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=06fc5fc9cfc78cbfe805560a4ccae65215e8768c;p=dbsrgits%2FDBIx-Class-Historic.git Add pod for params of inflate/deflate coderefs --- diff --git a/lib/DBIx/Class/InflateColumn.pm b/lib/DBIx/Class/InflateColumn.pm index 013c724..d9817fe 100644 --- a/lib/DBIx/Class/InflateColumn.pm +++ b/lib/DBIx/Class/InflateColumn.pm @@ -50,6 +50,11 @@ corresponding table class using something like: (Replace L with the appropriate module for your database, or consider L.) +The coderefs you set for inflate and deflate are called with two parameters, +the first is the value of the column to be inflated/deflated, the second is the +row object itself. Thus you can call C<< ->result_source->schema->storage->dbh >> on +it, to feed to L. + In this example, calls to an event's C accessor return a L object. This L object is later "deflated" when used in the database layer.