cphalcon: Phalcon 2.0.* - creating object does not set model snapshots.
Hi,
My model:
class Robots extends Model
{
public function initialize()
{
$this->keepSnapshots(true);
}
}
Immediately after creating a new instance of model, its snapshot is blank.
That prevents me from checking whether a field has been updated if I decide to update it later during the same request.
Snapshots only get set when loading a model. But they should also be set after a new model is created.
Thanks!
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 1
- Comments: 16 (14 by maintainers)
I mean that this is a known issue and I too just had to use this trick