[Dbix-class] Duplicate entry error on create

Eden Cardim edencardim at gmail.com
Thu Dec 10 16:24:49 GMT 2009

>>>>> "Dermot" == Dermot  <paikkos at googlemail.com> writes:

    Dermot> Oh! Should I be using the name of the accessor_name from the
    Dermot> belongs_to?

Precisely, if it's a "belongs_to" you want to pass it a hashref, if it's
a "has_many" you want to pass it an arrayref of hashrefs.

   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://edenc.vox.com/            http://www.shadowcat.co.uk/servers/

More information about the DBIx-Class mailing list