[Dbix-class] Inflation (DBIx::Class::InflateColumn) Troubles...

Christopher H. Laco claco at chrislaco.com
Sun May 6 02:00:38 GMT 2007


Jason Kohles wrote:
> column (it just fills it with a 0 instead), but I'll tackle that next,
> for now I need to figure out why the values aren't being deflated before
> they get inserted...
> =


And that's the other part of the problem...values aren't deflated...only
objects are...

    $obj->update({ money =3D> '$10.00' });

should be

    $obj->update({ money =3D> Data::Currency->new(10.00) });

to trigger deflation...but that end, just do:

    $obj->update({ money =3D> 10.00 });

and be done with it....

-=3DChris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070505/0b=
37f58f/signature.pgp


More information about the Dbix-class mailing list