Skip to content

Commit

Permalink
clear dirty flag on update.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Jan 24, 2022
1 parent 1e21c93 commit 9f7ec14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions owa_entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ function create() {
// Add to Cache
if ($status == true) {
$this->addToCache();
$this->dirty = [];
}

return $status;
Expand All @@ -306,6 +307,7 @@ function save() {
} else {
return $this->create();
}

}

function addToCache($col = 'id') {
Expand Down Expand Up @@ -353,6 +355,7 @@ function update($where = '') {
// Add to Cache
if ($status === true) {
$this->addToCache();
$this->dirty = [];
}

return $status;
Expand Down Expand Up @@ -389,6 +392,7 @@ function partialUpdate($named_properties, $where) {
// Add to Cache
if ($status == true) {
$this->addToCache();
$this->dirty = [];
}

return $status;
Expand Down

0 comments on commit 9f7ec14

Please sign in to comment.