[Dbix-class] Storable thaw hook

Oleg Pronin syber.rus at gmail.com
Mon Jun 25 23:18:52 GMT 2007


I noticed that Serialize::Storable plugin does that well if loaded into
result source. Why not to keep that as a default like in previous release?
I've got my resultset's caching broken.

2007/6/25, Matt S Trout <dbix-class at trout.me.uk>:
>
> On Mon, Jun 25, 2007 at 02:09:32PM +0400, Oleg Pronin wrote:
> > Hi.
> >
> > ResultSourceHandle did not attach schema back to itself after a row
> object
> > had been frozen with Storable.
> > So the update / relationship methods on thawed object do not work.
> > Is this a bug or a feature?
>
> Feature - since schemas are generally objects, there's no general way to
> know which one you want that we've found so we prefer not doing so - you
> just set the result_source/handle after thawing the object instead.
>
> I've been thinking about ways of "naming" schemas so that at least in some
> cases this can be done automatically, but I've not figured out a way
> that's
> actually less effort than writing a couple lines to do it by hand - if you
> can come up with anything I think there's definitely either a component or
> a patch to core in there.
>
> --
>      Matt S Trout       Need help with your Catalyst or DBIx::Class
> project?
>   Technical Director    Want a managed development or deployment platform?
> Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a
> quote
> http://chainsawblues.vox.com/
> http://www.shadowcatsystems.co.uk/
>
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
> Searchable Archive:
> http://www.mail-archive.com/dbix-class@lists.rawmode.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070626/bc4=
3df77/attachment.htm


More information about the Dbix-class mailing list