2009/10/19 Dermot <[email protected]>:
> 2009/10/19 Wallace Reis <[email protected]>:
>> 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.

_______________________________________________
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]

Reply via email to