[Dbix-class] Strange result when joining with the same alias twice

Matt S Trout dbix-class at trout.me.uk
Tue Jul 24 07:50:17 GMT 2007

On Mon, Jul 23, 2007 at 11:34:01AM +0400, Ivan Fomichev wrote:
> Hello, all,
> I've got a strange result when I wrote a script, that joins a single
> table twice under the same alias. Though I've managed to avoid this
> problem, having assigned another alias for one of relationships,
> however I think this is a bug and needs to be fixed. There is an
> sample code:

Yeah, it's a bug. Could you file on rt.cpan please?

Note that whatever you end up calling your rels I'd advise plural names
for has_many rels for clarity - so 'people' rather than 'person' (I
actually think 'members' is a better name anyway, albeit I can't use that
in the test case :)

      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 

More information about the Dbix-class mailing list