model = $model; if (is_string($model)) { $this->model = Snowflake::createObject($model); } parent::__construct($array, $flags); } /** * @return ActiveRecord|mixed */ public function current() { return (clone $this->model)->setAttributes(parent::current()); } }