|Problems? Is your data what you think it is?|
Re: Update Primary Key with DBIx::Class (discard_changes)by 1nickt (Abbot)
|on Sep 19, 2019 at 09:54 UTC||Need Help??|
Hi, your problem can be solved by using either of:
... see the doc for discard_changes(), which has a somewhat counter-intuitive name but acts as a "commit" if you've made changes to your result object in your code.
... which updates the record in the database immediately as well as in your program.
To find out what queries DBIx::Class is sending to your database, run your program with DBIC_TRACE=1 set in your environment.
Hope this helps!
Update: fixed missing clsoing brace, thanks pryrt
The way forward always starts with a minimal test.