Skip to content

many_to_many relation throws deprecated warning #7

Description

@Sadrak

DBIx::Class::ResultSet::search_rs(): search( %condition ) is deprecated, use search( %condition ) instead

I traced that warning down to this line in _save_columns:
$dbic->$accessor($value);

After chatting with the DBIx::Class-Stuff i get this helpful answer:

$obj->m2m_rel just calls $obj->search_related($link_rel)->search_related($foreign_rel, @_, %attrs)
so that becomes ->related_resultset($foreign_rel)->search(1001, %attrs), which is deprecated

And an solution
in that case it should be ->set_m2m_rel({ id => $_ })

But i thinks this must be configurable in HTML::FormFu::Model::DBIC. But i hope this many information is enough to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions