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


_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Reply via email to