2*3, 'full count';
};
+ subtest 'unconstrained' => sub {
+ is $people
+ ->with_parameterized_join(unconstrained_tasks => {})
+ ->$search_count('unconstrained_tasks.id')
+ ->$fetch_count,
+ 3, 'unconstrained count';
+ };
+
subtest 'errors' => sub {
like exception {
$people->with_parameterized_join(urgent_assigned_tasks => {})
]
);
+__PACKAGE__->parameterized_has_many(
+ unconstrained_tasks => 'My::Schema::Result::Task',
+ [ [], sub {
+ my $args = shift;
+ +{
+ "$args->{foreign_alias}.assigned_to_id" =>
+ { -ident => "$args->{self_alias}.id" },
+ }
+ }
+ ]
+);
+
our %ERROR;
my $_catch_fail = sub {
my $key = shift;