Re: [Dbix-class] Differences in generated relationships

2021-02-12 Thread Dave Cross
On Fri, 12 Feb 2021 at 08:47, Matthew Somerville  wrote:
>
> On Thu, 11 Feb 2021 at 16:12, Dave Cross  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...

___
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk


Re: [Dbix-class] Differences in generated relationships

2021-02-12 Thread Matthew Somerville
On Thu, 11 Feb 2021 at 16:12, Dave Cross  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.

ATB,
Matthew

___
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk