[Dbix-class] No such column: me. error
Jules Bean
jules at jellybean.co.uk
Wed Nov 23 09:01:08 CET 2005
Christopher H. Laco wrote:
>
> I'm not sure NEXT will do it...but NEXT is deep magic for my brain...
>
All NEXT does all make sure to call *all* other methods in your
inheritance tree, not merely those vertically 'above' where you are now.
> Handel::Cart::new
>
> I check the data has and options, then I call insert() in the CDBI world...
>
OK, big difference here. In DBIC, new is a different thing from insert.
new just creates a row in-memory (it is, for example, called when you
have just extracted a row from the database). insert is only called when
you want to insert an in-memory row into the db. create is routine which
= new + insert in that order.
Maybe that helps you understand what to do for Handel.
Jules
More information about the Dbix-class
mailing list