Skip to content

Commit 27c4142

Browse files
authored
Refresh function uses fresh selection instance
1 parent ec2a714 commit 27c4142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bean.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function offsetUnset($offset) : void
108108
*/
109109
public function refresh() : void
110110
{
111-
$this->row = $this->row->getTable()->get($this->primaryKey->getValue());
111+
$this->row = $this->row->getTable()->createSelectionInstance($this->getTableName())->get($this->primaryKey->getValue());
112112
$this->initiateProperties();
113113
}
114114

0 commit comments

Comments
 (0)