[Bast-commits] r3841 - in DBIx-Class/0.08/trunk: . lib/DBIx/Class

captainL at dev.catalyst.perl.org captainL at dev.catalyst.perl.org
Fri Oct 26 11:53:26 GMT 2007


Author: captainL
Date: 2007-10-26 11:53:26 +0100 (Fri, 26 Oct 2007)
New Revision: 3841

Modified:
   DBIx-Class/0.08/trunk/Changes
   DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm
Log:
the checks in reverse_relationship_info are less ambiguous

Modified: DBIx-Class/0.08/trunk/Changes
===================================================================
--- DBIx-Class/0.08/trunk/Changes	2007-10-25 10:04:42 UTC (rev 3840)
+++ DBIx-Class/0.08/trunk/Changes	2007-10-26 10:53:26 UTC (rev 3841)
@@ -1,4 +1,6 @@
 Revision history for DBIx::Class
+        - ResultSource::reverse_relationship_info can distinguish between 
+          sources using the same table
         - Row::insert will now not fall over if passed duplicate related objects
         - When adding relationships, it will throw an exception if you get the
           foreign and self parts the wrong way round in the condition

Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm	2007-10-25 10:04:42 UTC (rev 3840)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSource.pm	2007-10-26 10:53:26 UTC (rev 3841)
@@ -640,7 +640,7 @@
     my $otherrel_info = $othertable->relationship_info($otherrel);
 
     my $back = $othertable->related_source($otherrel);
-    next unless $back->name eq $self->name;
+    next unless $back->source_name eq $self->source_name;
 
     my @othertestconds;
 




More information about the Bast-commits mailing list