Skip Menu |

This queue is for tickets about the DBIx-Class-Fixtures CPAN distribution.

Report information
The Basics
Id: 129844
Status: new
Priority: 0/
Queue: DBIx-Class-Fixtures

People
Owner: Nobody in particular
Requestors: rrwo [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: _get_sorted_sources is wrong about relationship between two tables
Date: Tue, 18 Jun 2019 12:18:53 +0100
To: bug-DBIx-Class-Fixtures [...] rt.cpan.org
From: Robert Rothenberg <rrwo [...] cpan.org>
A have a table class C with an accessor:   "uid",     { data_type => "integer", is_nullable => 1 }, and another class U with an accessor that is a foreign key to C   "uid",   {     data_type      => "integer",     is_foreign_key => 1,     is_nullable    => 1,   }, Both of these columns are unique, and both have belongs_to relationships. But DBIC::Fixtures insists on adding records for the U table before the C table.
Subject: Re: [rt.cpan.org #129844] AutoReply: _get_sorted_sources is wrong about relationship between two tables
Date: Tue, 18 Jun 2019 13:40:01 +0100
To: bug-DBIx-Class-Fixtures [...] rt.cpan.org, rrwo [...] cpan.org
From: Robert Rothenberg <rrwo [...] cpan.org>
Ok, It turns out that the two tables have a circular relationship using different fields, so that wasl ikely the cause of this bug. I fixed it by changing the relationship to be deferrable. So the bug is invalid. On 18/06/2019 12:21, Bugs in DBIx-Class-Fixtures via RT wrote: Show quoted text
> Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "_get_sorted_sources is wrong about relationship between two tables", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #129844]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=129844 > > Please include the string: > > [rt.cpan.org #129844] > > in the subject line of all future correspondence about this issue. To do so, > you may reply to this message. > > Thank you, > bug-DBIx-Class-Fixtures@rt.cpan.org > > ------------------------------------------------------------------------- > > A have a table class C with an accessor: > >   "uid", >     { data_type => "integer", is_nullable => 1 }, > > and another class U with an accessor that is a foreign key to C > >   "uid", >   { >     data_type      => "integer", >     is_foreign_key => 1, >     is_nullable    => 1, >   }, > > Both of these columns are unique, and both have belongs_to relationships. > > But DBIC::Fixtures insists on adding records for the U table before the > C table.