2009/2/17  <[email protected]>:
>
> On Tue, 17 Feb 2009 13:20:31 +0000, Dermot <[email protected]> wrote:
>> 2009/2/17 Zbigniew Lukasiak <[email protected]>:
>
>>
>> I don't get the issue if I comment out
>>
>> file => [ { path => path => $hashref->{'path'} } ]
>>
>
> If it's a has_one relationship why do you supply an array ref?
>
> Did you try
>
>  file => { path => $hashref->{'path'} } ?

I used a arrayref because the DBIx/Class/ResultSet.pm#create says

"Example of creating a new row and also creating rows in a related
has_many or has_one resultset. Note Arrayref...."

But your hashref worked. Perhaps my relationship are the wrong way round!


Zbigniew
I'll try and look at RecursiveUpdate. I might struggle creating a
recursive structure though. The data is quite spread.
Thanx,
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