Welcome Guest, Not a member yet? Register   Sign In
useSoftDeletes and insert
#1

Hi !

I write this part of code in order to return time data (created_at field) to the client when he wants to insert a new message in the db :


PHP Code:
(...)
$insertId $message_model->insert($data);
$message $message_model->find($insertId);
$message $message_model->normalize_dates($message);
(...) 

It's working fine.... except when I set "useSoftDeletes = true" into my "message_model" file. If I do that, find() method return "null" whereas $insertId seems to be correct.

Is that normal ?
Thanks !
Reply


Messages In This Thread
useSoftDeletes and insert - by the_steff - 10-04-2020, 12:51 PM
RE: useSoftDeletes and insert - by nc03061981 - 10-04-2020, 05:56 PM
RE: useSoftDeletes and insert - by the_steff - 10-05-2020, 02:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB