Skip to content

Commit 28a3068

Browse files
mikouajiyidas
authored andcommitted
update readProperties after modifying existing record
1 parent 93c47f5 commit 28a3068

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Model.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1088,8 +1088,9 @@ public function save($runValidation=true)
10881088
if (isset($this->_writeProperties[$this->primaryKey])) {
10891089
$this->_selfCondition = $this->_writeProperties[$this->primaryKey];
10901090
}
1091+
$this->_readProperties = array_merge($this->_readProperties, $this->_writeProperties);
10911092
// Event
1092-
$this->afterSave(true, $this->_writeProperties);
1093+
$this->afterSave(true, $this->_readProperties);
10931094
}
10941095
}
10951096

0 commit comments

Comments
 (0)