On Thu, Apr 15, 2010 at 4:40 PM, Steve <[email protected]> wrote: > Hi, > I'm using Catalyst along with DBIC, and I recently got this error: > > DBIx::Class::ResultSet::create(): DBI Exception: DBD::mysql::st execute > failed: Cannot add or update a child row: a foreign key constraint fails [ snip ] > with ParamValues: 0='HASH(0xb57f080)', 1='66'] at
You're attempting to insert a hashref into the database, fix your ->create() call -- Eden Cardim Need help with your Catalyst or DBIx::Class project? Code Monkey http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://blog.edencardim.com/ http://www.shadowcat.co.uk/servers/ _______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[email protected]
