DBIx::Class::ResultSet::ParameterizedJoinHack
package MySchema::ResultSet::Person; use base qw(DBIx::Class::ResultSet); __PACKAGE__->load_components(qw(ResultSet::ParameterizedJoinHack)); 1;
This is a ResultSet component allowing you to access the dynamically parameterized relations declared with DBIx::Class::ParameterizedJoinHack.
Enable the component as usual with:
__PACKAGE__->load_components(qw( ResultSet::ParameterizedJoinHack ));
in your ResultSet class.
See DBIx::Class::ParameterizedJoinHack for declaration documentation, a general overview, and examples.
my $joined_rs = $resultset->with_parameterized_join( $relation_name, $parameters, );
This method constructs a ResultSet joined with the given $relation_name by the passed $parameters. The $relation_name is the name as declared on the Result, $parameters is a hash reference with the keys being the parameter names, and the values being the arguments to the join builder.
$relation_name
$parameters
Development of this module was sponsored by
Ctrl O http://ctrlo.com
Matt S. Trout <mst@shadowcat.co.uk>
None yet.
Copyright (c) 2015 the DBIx::Class::ParameterizedJoinHack "AUTHOR" and "CONTRIBUTORS" as listed above.
This library is free software and may be distributed under the same terms as perl itself.
To install DBIx::Class::ParameterizedJoinHack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::ParameterizedJoinHack
CPAN shell
perl -MCPAN -e shell install DBIx::Class::ParameterizedJoinHack
For more information on module installation, please visit the detailed CPAN module installation guide.