summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaus Beerta <[email protected]>2011-11-12 12:19:51 +0100
committerSimon Holywell <[email protected]>2012-11-12 13:46:45 +0000
commit2c0b1dff252df126b53e8e74b7d7aea17e78a5bc (patch)
tree235b42683ace539e3d2a5cb26601bc5999e6ee63
parent6358e5abe8e283d0b7f7b4bfe648f901fe85ec72 (diff)
allow unsetting of values
-rw-r--r--idiorm.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/idiorm.php b/idiorm.php
index 82b55ad..1ec749f 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -1361,6 +1361,12 @@
$this->set($key, $value);
}
+ public function __unset($key) {
+ unset($this->_data[$key]);
+ unset($this->_dirty_fields[$key]);
+ }
+
+
public function __isset($key) {
return isset($this->_data[$key]);
}