On 09/12/2009, at 13:38, Dermot wrote: > 2009/10/19 Dermot <paik...@googlemail.com>: >> 2009/10/19 Wallace Reis <wall...@reis.org.br>: >>> On 15/10/2009, at 21:08, Dermot wrote: >>>>>>>> my $record = { >>>>>>>> 'validation_pass' => 1, >>>>>>>> 'files' => [], >>>>>>>> 'active' => 1, >>>>>>>> 'name' => 'Gustav MR', >>>>>>>> 'clipdata' => [ >>>>>>>> { >>>>>>>> 'contrib_id' => 2, >>>>>>>> } >>>>>>>> ], >>>>>>>> 'contrib_id' => 2, >>>>>>>> }; >>>>>>>> >>>>>>> >>>>>>> Use a HashRef for clipdata rel instead of a ArrayRef. >>> >>> Here, you should note that currently find (and update) part of *_or_create >>> methods will fail for nested relations, so you need to call >>> find(update)_or_create for relationships separately. > > Is this still true? At least of 0.08114. > Dp.
Yes, and that applies to the problem you described in another thread (about dupes). -- wallace reis/wreis Catalyst and DBIx::Class consultancy with a clue Software Engineer and a commit bit: http://shadowcat.co.uk/catalyst/ Shadowcat Systems Limited http://www.shadowcat.co.uk http://www.linkedin.com/in/wallacereis _______________________________________________ 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/dbix-class@lists.scsys.co.uk