[Dbix-class] discard_changes upgrade.

Matt S Trout dbix-class at trout.me.uk
Fri Apr 18 19:42:08 BST 2008


On Mon, Apr 14, 2008 at 01:00:19PM +0400, Vladimir Timofeev wrote:
> Anyway next patch: reset in_storage property in case row gone away
> from db, test it also

You aren't using the ident_condition method; please do that instead of
constructing from primary_columns yourself - otherwise you're going to
die screaming if the user's changed the PK

Not sure if I like using HashRefInflator for this, but I'm not sure I
can see a more elegant approach either.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the DBIx-Class mailing list