Skip to content
Browse files

Fixing #8: Issues with isset, empty and unset on DBObject properties

  • Loading branch information...
1 parent b9d6f5c commit fd1ea7c7d944ac6c0c5df01c3e227450e85ec2d2 @tylerhall committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 includes/class.dbobject.php
View
10 includes/class.dbobject.php
@@ -78,6 +78,16 @@ public function __set($key, $value)
return $value; // Seriously.
}
+ public function __isset($key)
+ {
+ return array_key_exists($key, $this->columns);
+ }
+
+ public function __unset($key)
+ {
+ unset($this->columns[$key]);
+ }
+
public function select($id, $column = null)
{
$db = Database::getDatabase();

0 comments on commit fd1ea7c

Please sign in to comment.
Something went wrong with that request. Please try again.