Skip to content

Commit

Permalink
Fixing #2240
Browse files Browse the repository at this point in the history
  • Loading branch information
jheathco committed Oct 16, 2009
1 parent 321876a commit 830e0ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/kohana/orm.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ public function __construct($id = NULL)
*/
public function __isset($column)
{
$this->_load();

return (isset($this->_object[$column]) OR isset($this->_related[$column]));
}

Expand All @@ -196,6 +198,8 @@ public function __isset($column)
*/
public function __unset($column)
{
$this->_load();

unset($this->_object[$column], $this->_changed[$column], $this->_related[$column]);
}

Expand Down

0 comments on commit 830e0ef

Please sign in to comment.