protected function _init() { $data = $this->_config['data']; parent::_init(); $this->set($data); foreach (array('classes', 'model', 'result', 'query') as $key) { unset($this->_config[$key]); } }
protected function _init() { parent::_init(); $this->_original = $this->_data; $this->_handlers += array('MongoId' => function ($value) { return (string) $value; }, 'MongoDate' => function ($value) { return $value->sec; }); }