diff --git a/owa_entity.php b/owa_entity.php index eccae591..b379611f 100644 --- a/owa_entity.php +++ b/owa_entity.php @@ -294,6 +294,7 @@ function create() { // Add to Cache if ($status == true) { $this->addToCache(); + $this->dirty = []; } return $status; @@ -306,6 +307,7 @@ function save() { } else { return $this->create(); } + } function addToCache($col = 'id') { @@ -353,6 +355,7 @@ function update($where = '') { // Add to Cache if ($status === true) { $this->addToCache(); + $this->dirty = []; } return $status; @@ -389,6 +392,7 @@ function partialUpdate($named_properties, $where) { // Add to Cache if ($status == true) { $this->addToCache(); + $this->dirty = []; } return $status;