Bug 28564

Summary: "The many-to-many relationship * is trying to create a utility method" warning
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: nicolas.legrand
Version: master   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28490
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Jonathan Druart 2021-06-14 15:29:09 UTC
I am not sure what triggered this output exactly.

To recreate:
git checkout this commit (not pushed yet): "Bug 28490: Add DBIx schema changes for testing"
qa -c 5 -v 2 --failures

It happens when reloading the module in koha-qa.pl:

103             delete $INC{$module};
104             $module =~ s|/|::|g;
105             $module =~ s|\.pm$||;
106             eval "require $module";
107             $module->import;

During the require, but I cannot recreate in a separate test file.



DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'basketnoes' is trying to create a utility method
called add_to_basketnoes.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'basketnoes' is trying to create a utility method
called remove_from_basketnoes.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'basketnoes' is trying to create a utility method
called set_basketnoes.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'basketnoes' is trying to create a utility method
called basketnoes_rs.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'budgets' is trying to create a utility method
called add_to_budgets.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'budgets' is trying to create a utility method
called remove_from_budgets.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'budgets' is trying to create a utility method
called set_budgets.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'budgets' is trying to create a utility method
called budgets_rs.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'courses' is trying to create a utility method
called add_to_courses.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'courses' is trying to create a utility method
called remove_from_courses.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'courses' is trying to create a utility method
called set_courses.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'courses' is trying to create a utility method
called courses_rs.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'ordernumbers' is trying to create a utility method
called add_to_ordernumbers.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'ordernumbers' is trying to create a utility method
called remove_from_ordernumbers.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'ordernumbers' is trying to create a utility method
called set_ordernumbers.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
DBIx::Class::Relationship::ManyToMany::many_to_many(): 
***************************************************************************
The many-to-many relationship 'ordernumbers' is trying to create a utility method
called ordernumbers_rs.
This will completely overwrite one such already existing method on class
Koha::Schema::Result::Borrower.

You almost certainly want to rename your method or the many-to-many
relationship, as the functionality of the original method will not be
accessible anymore.

To disable this warning set to a true value the environment variable
DBIC_OVERWRITE_HELPER_METHODS_OK

***************************************************************************
Comment 1 Katrin Fischer 2023-07-01 11:16:41 UTC
I still see this happen from time to time when running the QA test tools.