[Dbix-class] create_related is failing on second time through loop?

Tim Anderson tja824 at gmail.com
Tue Jun 19 20:56:58 GMT 2012


I don't have it set, but I will definitely give that a try.  Thanks for the
suggestion.

-Tim


On Tue, Jun 19, 2012 at 3:49 PM, Len Jaffe <lenjaffe at jaffesystems.com>wrote:

>
>
> On Tue, Jun 19, 2012 at 3:13 PM, Tim Anderson <tja824 at gmail.com> wrote:
>
>> Thanks Len.
>>
>> I noticed that too, but I assumed that since the first iteration through
>> the loop was successful, this must be how the data is represented
>> internally in the DBIx modules and I discounted it as a problem.  $new_r=
ole
>> is definitely a scalar when I assign it to the hash ref and pass it to
>> create_related.
>>
>
> Do you have PrintError or RaiseError set in your options hash when you
> connect to the DB?
> If not, you might try setting PrintError, Heck. for debugging, set
> RaiseError. Maybe you'll get a decent DBI error message. Because it appea=
rs
> the DBI can't figure out what the problem is, it just know that there is
> one.
>
> L.
>
> --
> lenjaffe at jaffesystems.com   614-404-4214             www.volunteerable.net
> Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
> Greenbar <http://www.greenbartraining.org/>: Grubmaster: 2012-2009, Grub
> Asst: 2008, Trained: 2007.
>
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20120619/080=
32fef/attachment.htm


More information about the DBIx-Class mailing list