[Catalyst] DBIx::Class method, "update_or_create_related" - it tries to populate the primary key value of the related object

Matt S Trout dbix-class at trout.me.uk
Thu Aug 21 23:13:31 BST 2008

On Tue, Aug 19, 2008 at 10:43:17AM +1000, kakimoto at tpg.com.au wrote:
> Hello, there, Zbigniew,
>    Thanks for the article, "Perl Alchemy - notes of a Catalyst programmer".
> Phew.. Thought I was going insane cause I figured a proper ORM would not
> have this problem.

If you ask DBIx::Class to insert NULL, it inserts NULL.

DBIC doesn't second guess you because it's the thing talking to your
production database.

I'm sorry you think it's a problem that it does what you tell it to.

      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/

More information about the Catalyst mailing list