You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Github issue #7
A spurious update is being generated on a Many-to-many update.
This patch prevents that spurious update but am not sure that it
won't potentially hit other situations.
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.
The text was updated successfully, but these errors were encountered: