$object->set({column => $val})->store does not work. DB trace: BEGIN WORK COMMIT On the other hand, $object->_result()->update({column => $val}) does work. DB trace: BEGIN WORK UPDATE borrowers SET overdrive_auth_token = ? WHERE ( borrowernumber = ? ): XXX, YYY COMMIT
Srdjan, what did you try exactly? I have tried the following: use Modern::Perl; use Koha::Borrowers; my $p = Koha::Borrowers->find(10); $p->set({firstname => 'my new firstname', surname => 'my new surname' })->store; then MariaDB [koha]> select firstname, surname from borrowers where borrowernumber=10; And I got my updated values.
Well I cannot make it happen now myself. Who knows what was going on...