Welcome Guest, Not a member yet? Register   Sign In
How to skip no data to update exception?
#3

(10-26-2022, 04:25 AM)kenjis Wrote: try/catch.

v4.3.0 will have allowEmptyInserts() method.

Do you mean to leave the catch empty,  something like this?
PHP Code:
try{
  $model->save($entity);       
} catch (\Exception $e) {
    // LEAVE THIS EMTPY
}

//other stuff that will be processed even when an Exception is fired. 
Reply


Messages In This Thread
RE: How to skip no data to update exception? - by Jag81 - 10-26-2022, 06:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB