HI I have a small issue about saving new characters in my game online. There is piece of code:
$newOne = new Characters();
$newOne->exhaustion = 12600;
...
if($newOne->save()) {
...
}
And with the same input and data given to this code it works from time to time. I mean I can click Create button and nothing will happen but I click this same another time and it works perfectly. I can refresh the site few times (no pattern) and it work too. How can I check why it happens and mostly, why it doesn't work all the time?
Kamil