[Dbix-class] Differences in generated relationships
matthew at mysociety.org
Fri Feb 12 08:40:39 GMT 2021
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.
More information about the DBIx-Class