NAME
DBIx::Class::ResultSet::ParameterizedJoinHack
SYNOPSIS
package MySchema::ResultSet::Person;
use base qw(DBIx::Class::ResultSet);
__PACKAGE__->load_components(qw(ResultSet::ParameterizedJoinHack));
1;
DESCRIPTION
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.
METHODS
with_parameterized_join
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.
SPONSORS
Development of this module was sponsored by
Ctrl O http://ctrlo.com
AUTHOR
Matt S. Trout <mst@shadowcat.co.uk>
CONTRIBUTORS
None yet.
COPYRIGHT
Copyright (c) 2015 the DBIx::Class::ParameterizedJoinHack "AUTHOR" and "CONTRIBUTORS" as listed above.
LICENSE
This library is free software and may be distributed under the same terms as perl itself.