RE: [Dbix-class] updating a has_many relationship failure

2010-02-02 Thread Ihnen, David
It expects the object of the opposing table row there, not a hash - hence the error. This is how I would do it. $album-update({ record_label = App-model('AppDB::Labels')-find({ label_name = Dischord }) }); David -Original Message- From: Jon [mailto:j...@texttoall.com] Sent: Tuesday,

Re: [Dbix-class] updating a has_many relationship failure

2010-02-02 Thread Jon
It expects the object of the opposing table row there, not a hash - hence the error.  This is how I would do it. Thanks David, works great now. ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: