[Dbix-class] Populate and related tables

Peter Rabbitson rabbit+dbic at rabbit.us
Thu May 15 10:18:29 GMT 2014


On Sat, May 10, 2014 at 07:38:22PM -0700, Louis Erickson wrote:
> I've been throwing away some old code and replacing it with DeploymentHandler.  All my old hand-written SQL files are being replaced by Perl which uses DBIC to populate the database.
> 
> One of those functions to populate the database didn't work right.  Eventually, I boiled it down to an standalone test, which still fails in a way I didn't expect.  I'm not sure if I'm doing something wrong, or if I've missed something in the docs, or if there's a lurking bug.
> 
> What I'm seeing is that if I call populate() with a data structure where the first item does not reference other tables, none of the other items in the data structure will create items in referenced tables.  If the first item does refer to other tables, all other references will get created as I expected.


This is a known bug, that was thought to have been fixed, only to 
resurface back in March. Apologies for the slow response - maintainer is 
suffering acute onset of life. I am trying to have this fixed within 
this week.

Cheers and sorry for the delay





More information about the DBIx-Class mailing list