lgn8412 has asked for the wisdom of the Perl Monks concerning the following question:

Hi again!, I' have another problem with catalyst, turns out that when I try to add a registry into my local database, it gives me an error in which it says that It doesn't have some row that it obviously has, I think the problem has to do with adding a registry into the databse that has primary and foreign keys, I'm not sure how this works, the way I was trying it with goes something like this:

(objeto)->create({ numeracion => $numera, loco_fkey => $loco, Fecha => $fecha, Anexo => $anexo });

I dunno how to proceed in this matter, I'd like get some kind of info or hint, been dealing with this all day. Thanks in advance.

Replies are listed 'Best First'.
Re: Problems with resultset class
by chrestomanci (Priest) on Jan 18, 2011 at 16:30 UTC

    The most common database interface to use with Catalyst is DBIx::Class. The examples in Catalyst::Manual::Tutorial suggest that you use it.

    Given this, I suspect your problem is with the underlying DBIx::Class rather than with Catalyst. Most likely you have made edits to your class definitions without making the corresponding edits to your database schema, however without seeing more code & error messages, I am just guessing.