public function loadCurrent($model, &$cursor) { if (!$this->loadByID($model, array_shift($cursor))) { $model->id = null; $model->data = array(); } }