- Begin transaction
- Update model - OK
- Update model again (without commit) - changes are not visible
this is serious problem, see simple example
function afterUpdate () {
if (!$this->is_delivered) {
$this->is_delivered = true;
$this->update(); // THIS LOOPS FOREVER!
}
}
You may ask why don't You change it in beforeUpdate() but it is not that simple, above is just illustration of a problem.
I've tryied $this->refresh() - no effect, $this->reset() doesn't help either. It's a serious problem for me, and I guess it might be for many ppl out there.
Is there ANY way for it to see changes?
To be honest it looks like huge/serious bug/problem of Phalcon ORM.