[Dbix-class] create failures with has_one
Dermot
paikkos at googlemail.com
Wed Dec 9 16:38:50 GMT 2009
2009/10/19 Dermot <paikkos at googlemail.com>:
> 2009/10/19 Wallace Reis <wallace at 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.
More information about the DBIx-Class
mailing list