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

Len Jaffe lenjaffe at jaffesystems.com
Tue Jun 19 20:49:34 GMT 2012


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_ro=
le
> 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 appears
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20120619/bcb=
d14a7/attachment.htm


More information about the DBIx-Class mailing list