Transaction |
HI sorry for english, in my controller i control if a record is a user's record before delete the record :
PHP Code: function delete_device($id_record){ this is the fuction to control if record is is a user's record : PHP Code: function control_record_of_user($id_record,$user_id){ in my model i have a transaction in deleteDevice_plus_rimuovi_dispositivi: PHP Code: function deleteDevice_plus_rimuovi_dispositivi($record){ With transaction i have an error as the controller control many time if the record is a user's record : PHP Code: <h4>A PHP Error was encountered</h4> This is line number 658 if($device->id_user==$user_id){ The process work fine (but i see the error for half of second) if i delete only the record without transaction ( deleteDevice($record ) ) i haven't error . Why ? |
Messages In This Thread |
Transaction - by pippuccio76 - 04-26-2020, 09:17 AM
RE: Transaction - by neuron - 04-26-2020, 09:52 AM
RE: Transaction - by pippuccio76 - 04-26-2020, 10:27 AM
|