[Dbix-class] create failures with has_one
Wallace Reis
wallace at reis.org.br
Mon Oct 19 14:12:21 GMT 2009
On 15/10/2009, at 21:08, Dermot wrote:
> 2009/10/15 Wallace Reis <wallace at reis.org.br>:
>> On 15/10/2009, at 08:34, Dermot wrote:
>>
>>> 2009/10/15 Wallace Reis <wallace at reis.org.br>:
>>>>
>>>> On 14/10/2009, at 13:10, 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.
> I would really, really love to do a doc patch if I knew how. Mostly
> because that's all I feel I have the ability to do. However I have no
> experience of how to create patches. I guess it's a similar to `svn
> diff > ...`. Is there something on the Advent Calendar's or similar
> that might show me?
Not sure, but a "svn diff" output or a "svk ci -P" patch is fine.
--
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
More information about the DBIx-Class
mailing list