I'm experiencing some trouble with saving data to some of my custom columns in the
After quite some time I realized that when I call
$this->payment->save(), the data is not actually saved immediately to the database.
For example I get the current time from php with the
time() function that returns a number in seconds, I want to save it to the database, which works fine.
Apparently MySql converts the number to the correct string representation. But when I want to pull the same data from the database again after having called
save(), I'm not getting the data from the database, but rather the actual unconverted
time() value that I saved to the object.
So I'm expecting a date string to call
strtotime(), but I get the number in seconds that I inserted earlier. It's even worse when I'm saving a float value that gets rounded in the database but the object still contains the unrounded number.
So is there a way to update the data in the object after calling