![]() |
Thank you @MGatner and @iRedds. After thinking through this I decided that fixing my code is a cheaper option. First, I have found a lot of stupid code like
Code: $watchesModel->where('id', $id)->set($data)->update(); True, in some places I found I had to do a query first to get the id, but well, that was not so difficult after all. And in some cases, where a query would update multiple rows at once, I decided logging those was not that critical after all. ) ![]() If anyone were interested, I could paste here the complete solution I am using now. Thanks guys for help!
==
Donatas G. |
Messages In This Thread |
logging db actions via model events and id problem - by dgvirtual - 01-12-2022, 12:55 PM
RE: logging db actions via model events and id problem - by kenjis - 01-12-2022, 07:41 PM
RE: logging db actions via model events and id problem - by dgvirtual - 01-13-2022, 03:36 AM
RE: logging db actions via model events and id problem - by iRedds - 01-13-2022, 11:59 AM
RE: logging db actions via model events and id problem - by MGatner - 01-17-2022, 06:58 AM
RE: logging db actions via model events and id problem - by dgvirtual - 01-19-2022, 12:20 PM
|