);
sub _build_correspondent_collection {
my $self = shift;
- if ($self->has_schema) {
- return Debbugs::Collection::Correspondent->new(schema => $self->schema);
- }
- return Debbugs::Collection::Correspondent->new();
+ return Debbugs::Collection::Correspondent->new($self->schema_argument);
}
sub reset {
new(package => $self,
version => $v,
package_collection => $self->package_collection,
- $self->has_schema?(schema => $self->schema):(),
+ $self->schema_argument,
);
}
} else {
new(package => $self,
version => $v,
package_collection => $self->package_collection,
- $self->has_schema?(schema => $self->schema):(),
+ $self->schema_argument,
);
}
}
sub _build_package_collection {
my $self = shift;
- return Debbugs::Collection::Package->new($self->has_schema?(schema => $self->schema):());
+ return Debbugs::Collection::Package->new($self->schema_argument)
}
sub CARP_TRACE {