It wasn't in the code version they had when I was encountering that issue... we used a workaround where we defined queries manually and called them to fulfill that purpose... I think it might be related to the ability of SQL::abstract to work with that kind of expression.
Newer code versions might allow it... but I think it was more fundamental than something that could be fixed with a minor revision. On Fri, May 6, 2011 at 12:50 PM, Ton Voon <[email protected]> wrote: > 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/[email protected] > -- David Ihnen Voice contact (562) 743-1807
_______________________________________________ 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/[email protected]
