public function __set($name, $value) { $this->_load(); $this->__inforecord_array[$name] = array('changed' => true, 'value' => $value); $this->_dirty = true; $self = $this; register_shutdown_function(function () use($self) { $self->commit(); }); }