Skip to content

Commit

Permalink
改进__unset方法
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Feb 26, 2021
1 parent e9a33f9 commit 8e84655
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,10 @@ public function __isset(string $name): bool
*/
public function __unset(string $name): void
{
unset($this->data[$name], $this->relation[$name]);
unset($this->data[$name],
$this->get[$name],
$this->set[$name],
$this->relation[$name]);
}

// ArrayAccess
Expand Down

0 comments on commit 8e84655

Please sign in to comment.