Normally when I call Model->save(), it creates the new record in the database successfully. I\'m trying to debug a situation when nothing happens and Model
Model->save()
Model
To get the insert queries when $user->save(); error, you can try to catch the exception like this:
$user->save();
try{ $user = new User; $user->fields = 'example'; $user->save(); // returns false } catch(\Exception $e){ // do task when error echo $e->getMessage(); // insert query }
Hope this helps :)