[Dbix-class] Re: New many-to-many warnings

Rippl, Steve rippls at woodlandschools.org
Mon Dec 10 18:53:48 GMT 2012


OK, my bad!  I had previously manually defined many-to-many relations for a
couple of the tables and now they're being autogenerated with the same
names.

Sorry!


On Thu, Dec 6, 2012 at 8:17 PM, Rippl, Steve <rippls at woodlandschools.org>wr=
ote:

> Hi,
>
> I have a Catalyst app using DBIx::Class and just updated to latest
> versions and suddenly I'm getting warnings when loading the schema from o=
ur
> Postgres DB that I hadn't seen before
>
> DBIx::Class is up to date. (0.08204)
> DBIx::Class::Schema::Loader is up to date. (0.07033)
>
> *************************************************************************=
**
> DBIx::Class::Carp::__ANON__():
> *************************************************************************=
**
> The many-to-many relationship 'roles' is trying to create a utility method
> called roles_rs.
> This will completely overwrite one such already existing method on class
> Site::Schema::Result::User.
>
> 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
>
> *********************************************************************
>
> I'm getting a few of these on tables that I haven't altered in the
> interim, I'm not creating relationships manually, they're defined in the
> DB.  Are these utility methods new?  I'm not seeing them in the schema but
> I suppose that's what the warning is telling me?  Is it OK to just
> set DBIC_OVERWRITE_HELPER_METHODS_OK to true?
>
> Thanks,
> Steve
>
> --
> Steve Rippl
> Technology Director
> Woodland Public Schools
> 360 841 2730
>



-- =

Steve Rippl
Technology Director
Woodland Public Schools
360 841 2730
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20121210/efe=
b5691/attachment.htm


More information about the DBIx-Class mailing list