Skip Menu |

This queue is for tickets about the Handel CPAN distribution.

Report information
The Basics
Id: 19778
Status: resolved
Priority: 0/
Queue: Handel

People
Owner: claco [...] cpan.org
Requestors: tkp [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.99_02
Fixed in: (no value)



Subject: Conflict with $order->reconcile and inflate_column
I'm getting an error when trying to run: $order->reconcile($cart_id); where $order is a subclass of Handel::Order - that is, a full subclass, with it's own complete schema and related subclasses. The problem only seems apparent when My::Schema::CartItem has a datetime column with the appropriate inflate_column methods set up: __PACKAGE__->inflate_column('ctime', { inflate => sub { DateTime::Format::MySQL->parse_datetime(shift); }, deflate => sub { DateTime::Format::MySQL->format_datetime(shift); }, }); Also interesting to note that running reconcile with a cart instance rather than an id works fine: $order->reconcile($cart); I have worked an example of this into the test set. A svn diff from r1212 is attached. This should supply you with all the schema classes, Handel subclasses and sql to replicate my problem.
Subject: diff
Download diff
application/octet-stream 10.6k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #19778] Conflict with $order->reconcile and inflate_column
Date: Wed, 07 Jun 2006 21:26:38 -0400
To: bug-Handel [...] rt.cpan.org
From: "Christopher H. Laco" <claco [...] chrislaco.com>
Guest via RT wrote: Show quoted text
> Wed Jun 07 21:10:14 2006: Request 19778 was acted upon. > Transaction: Ticket created by guest > Queue: Handel > Subject: Conflict with $order->reconcile and inflate_column > Broken in: 0.99_02 > Severity: Important > Owner: Nobody > Requestors: tkp@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=19778 > > > > I'm getting an error when trying to run: > > $order->reconcile($cart_id); > > where $order is a subclass of Handel::Order - that is, a full subclass, > with it's own complete schema and related subclasses. > > The problem only seems apparent when My::Schema::CartItem has a datetime > column with the appropriate inflate_column methods set up: > > __PACKAGE__->inflate_column('ctime', { > inflate => sub { DateTime::Format::MySQL->parse_datetime(shift); }, > deflate => sub { DateTime::Format::MySQL->format_datetime(shift); }, > }); > > Also interesting to note that running reconcile with a cart instance > rather than an id works fine: > > $order->reconcile($cart); > > I have worked an example of this into the test set. A svn diff from > r1212 is attached. This should supply you with all the schema classes, > Handel subclasses and sql to replicate my problem. >
Is there a .t test file for this? It didn't make it into the diff.
Download signature.asc
application/pgp-signature 189b

Message body not shown because it is not plain text.

From: tkp [...] cpan.org
Show quoted text
> > Is there a .t test file for this? It didn't make it into the diff. >
Damn it... Here's the diff again with the .t file this time. sorry bout that
Download diff
application/octet-stream 13.1k

Message body not shown because it is not plain text.