[Dbix-class] Re: Using Storable with DBIx::Class - Can't locate
object method "result_source_instance"
Wallace Reis
reis.wallace at gmail.com
Wed Sep 30 22:00:19 GMT 2009
On Wed, Sep 30, 2009 at 1:10 PM, Bill Moseley <moseley at hank.org> wrote:
> $VERSION = '0.08111';
>
> Ok, starting simple, what's the correct way to store and retrieve dbic row
> objects from Storable?
> Unable to restore schema at ../../lib/Storable.pm (autosplit into
> ../../lib/auto/Storable/thaw.al) line 415
> calling ->cds on deserialized object
> Can't call method "source" on an undefined value at
> /usr/local/share/perl/5.10.0/DBIx/Class/R
The error message is clever in 0.08112. You need to 'freeze' and
'thaw' your dbic row. Look at DBIC::Schema docs about it.
--
wallace reis/wreis Catalyst and DBIx::Class consultancy with a clue
Software Engineer and a commit bit: http://shadowcat.co.uk/catalyst/
Shadowcat Systems Limited
http://www.shadowcat.co.uk http://www.linkedin.com/in/wallacereis
More information about the DBIx-Class
mailing list