Bug 28564 - "The many-to-many relationship * is trying to create a utility method" warning
Summary: "The many-to-many relationship * is trying to create a utility method" warning
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-14 15:29 UTC by Jonathan Druart
Modified: 2023-10-11 08:29 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.