tylerhall/simple-php-framework — Issue #8: Issues with isset, empty and unset on DBObject properties
Author: Crowze
Created: 2011-12-14 11:17:37+00:00
State: open

Calls to empty() or isset() on a DBObject property always returns true, and unset() has no effect as the magic methods __isset and __unset are not defined. The following methods need to be added:

```php
public function __isset($key) {
return array_key_exists($key, $this->columns);
}

public function __unset($key) {
unset($this->columns[$key]);
}
```