[Dbix-class] Differences in generated relationships
Dave Cross
dave at dave.org.uk
Fri Feb 12 09:57:08 GMT 2021
On Fri, 12 Feb 2021 at 08:47, Matthew Somerville <matthew at mysociety.org> wrote:
>
> On Thu, 11 Feb 2021 at 16:12, Dave Cross <dave at dave.org.uk> wrote:
> > But I'd still like to know where those differences were coming from.
>
> In DBIx::Class::Schema::Loader::RelBuilder, in the
> _relnames_and_method function, there is a "If more than one rel
> between this pair of tables" section. Not sure I understand it fully,
> but it looks like it does do something different the first time a
> relation is added (when it looks like it pluralizes the column name),
> as opposed to the second time when the temporary file is read in and
> then might not do so.
Interesting. Thanks, I'll have a look there.
Cheers,
Dave...
More information about the DBIx-Class
mailing list