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.