There's more than one way to do things | |
PerlMonks |
Re^2: DBIx::Class : stop changing table, column, relationship namesby bliako (Monsignor) |
on Feb 28, 2023 at 18:36 UTC ( [id://11150652]=note: print w/replies, xml ) | Need Help?? |
Thanks for your reply. Perhaps I was a bit vague, so here is some more detail. No, the JSON data does not contain the relationships. Only table names, and I infer the foreign keys. Consider the following SQL of two tables where one is referencing the other's PK:
Using:
creates following perl in file : Model::Schema::Result::AvailableMyapp
and this perl in file 'Model/Schema/Result/AvailableMyapp.pm':
My problem is with the relationship names "available_myapps" and "myapp_type". I don't want the plural in the first one and I don't want to break the camel type for either.
In Section
Seekers of Perl Wisdom
|
|