Skip to content

Instantly share code, notes, and snippets.

@jjn1056
Created May 19, 2020 13:05
Show Gist options
  • Save jjn1056/7d45f9282821018b9d8018deb0675c1b to your computer and use it in GitHub Desktop.
Save jjn1056/7d45f9282821018b9d8018deb0675c1b to your computer and use it in GitHub Desktop.
my $model = $c->model('Schema::Person')->new_result(+{});
my $cc = $c->model('Schema::CreditCard')->new_result(+{});
$model->credit_card_rs($cc, $cc, $cc); # This gives "DBIx::Class::ResultSet::search_rs(): Odd number of arguments to search"
$model->add_to_credit_card_rs($cc); # "DBIx::Class::ResultSource::_resolve_relationship_condition(): Argument to infer_values_based_on must be a hash "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment