digger has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I've been asked to take on a project to import a number of xml files into a database. The data model is not great and I think it is a problem for DBIx::Class.
Let's say we have 3 tables, A, B and C. B and C reference A and C references B. When DBIx::Class generates the sql to insert a record for this design it will leave off one of the foreign keys. Most often, it is the foreign key that is accessible through the relationship instead of directly.
I know the db layout isn't great, but it is what I was given and I don't have the luxury of changing it at this point. Is this an issue with DBIC? Is it too smart to work with ugly db designs?
I appreciation any insight.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trouble with DBIx::Class
by Your Mother (Archbishop) on Dec 01, 2015 at 20:52 UTC | |
by digger (Friar) on Dec 07, 2015 at 22:31 UTC |