[Dbix-class] has_many LEFT JOIN with parameter
Ton Voon
tonvoon at gmail.com
Fri May 6 17:50:18 GMT 2011
Hi!
Is it possible to have a has_many relationship where the LEFT JOIN ON relationship contains a parameter? For instance, something like in User.pm:
__PACKAGE__->has_many( "useraccounts", "UserAccounts", { "foreign.userid" => "self.id", "foreign.accountid" => $value }, { join_type => "left" } );
Where $value can be specified as part of the search for the ON condition.
Is this possible?
Ton
More information about the DBIx-Class
mailing list