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
$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.
Development of this module was sponsored by
Ctrl O http://ctrlo.com
Matt S. Trout <email@example.com>
This library is free software and may be distributed under the same terms as perl itself.