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

Hi, 
is there a way to skip the "no data to update" exception?

I use this line to save:
PHP Code:
$model->save($entity); 

Often the entity is new, but sometimes the entity is known and not changed.

I need this behavior: If there is something changed the update, if not, continue (without firing an exception).
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB