chriskite / phactory

A Database Factory for PHP Unit Tests
http://phactory.org
MIT License
140 stars 39 forks source link

isset() doesn't work as expected #27

Closed trimbletodd closed 11 years ago

trimbletodd commented 11 years ago

When calling isset(), it doesn't look like the model is implementing the magic method __isset() to look in _storage for the value.

Phactory::define('users', array('uid'=>'$n'));
$user = Phactory::create('users', array('uid'=>1));
var_dump($user->uid);  // string(1) "1"
var_dump(isset($user->uid)); // bool(false)