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

Ivan Fomichev ifomichev at gmail.com
Tue Jul 24 13:44:49 GMT 2007


2007/7/24, Matt S Trout <dbix-class at trout.me.uk>:
> Yeah, it's a bug. Could you file on rt.cpan please?

Ticket #28451.

> 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 :)

If it were 'people', then it wouldn't collide with 'person' for
belongs_to relationship in Schema::Account. To get a more beautiful
test case, you could invent a schema with has_one relationship instead
of has_many ;-)

Regards,
Ivan



More information about the Dbix-class mailing list