diff options
author | Claus Beerta <[email protected]> | 2011-11-12 12:19:51 +0100 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2012-11-12 13:46:45 +0000 |
commit | 2c0b1dff252df126b53e8e74b7d7aea17e78a5bc (patch) | |
tree | 235b42683ace539e3d2a5cb26601bc5999e6ee63 | |
parent | 6358e5abe8e283d0b7f7b4bfe648f901fe85ec72 (diff) |
allow unsetting of values
-rw-r--r-- | idiorm.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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]); } |