Sets default model

@param mixed $value The initial set to modify

@return Eden\Collection\Index
557472
public function setModel($model)
    {
        //argument 1 must be a string
        Argument::i()->test(1, 'string');

        if (!is_subclass_of($model, 'Eden\\Model\\Index')) {
            Exeption::i()
                ->setMessage(self::ERROR_NOT_SUB_MODEL)
                ->addVariable($model)
                ->trigger();
        }

        $this->model = $model;

        return $this;
    }
772197
public function setValue($value) {
        switch ($this->type) {
            case self::TYPE_BOOLEAN:
                $this->value = (bool) $value;
                break;
            case self::TYPE_STRING:
                $this->value = (string) $value;
                break;
        }
        return $this;
    }
92007
public function setCoreSiteStart($value)
    {
        $this->setFieldName('site_start');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
289278
public function setValue($value) {
		Argument::i()->test(1, 'scalar', 'array', 'null');
		
		if(!is_array($value)) {
			$value = func_get_args();
		}
		
		$this->value = $value;
			
		return $this;
	}
393888
public function setDefault($key, $value)
    {
        foreach ($this->routes as $route)
            $route->setDefault($key, $value);
        return $this;
    }
1081883
public function setCoreCacheDefault($value)
    {
        $this->setFieldName('cache_default');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
447018
public function setValue($value = null)
    {
        if (is_callable($value)) {
            $value = call_user_func($value);
        }

        $value = $this->handleJsonType($value);

        $this->value = $value;

        return $this;
    }
518144
public function affect($value)
    {
        $i = Collection::count(self::$colmuns) - 1;
        self::$colmuns[$i] .= " default '".$value."'";
        //
        return $this;
    }
1131795
public function setCoreModxBrowserDefaultSort($value)
    {
        $this->setFieldName('modx_browser_default_sort');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1167852
public function set($value = null)
    {
        $this->owner->set($this->short_name, $value);

        return $this;
    }
1346990
public function setCoreDefaultMediaSource($value)
    {
        $this->setFieldName('default_media_source');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1350111
public function setDefaultValue($value) : self
    {
        $this->default_value = $value;
        // If valid input was entered already, check if this value is different.
        if ($this->is_valid) {
            $this->is_changed = ($this->default_value == $this->user_value);
        }
        return $this;
    }
1363058
public function setCoreSyncsiteDefault($value)
    {
        $this->setFieldName('syncsite_default');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
681110
public function set($value = null)
    {
        //get args
        $args = func_get_args();
        
        if (count($args) < 2) {
            return $this;
        }
        
        $value = array_pop($args);
        $last = array_pop($args);
        
        $pointer = &$this->data;
        foreach ($args as $i => $step) {
            if (!isset($pointer[$step])
                || !is_array($pointer[$step])
            ) {
                $pointer[$step] = array();
            }

            $pointer = &$pointer[$step];
        }
        
        $pointer[$last] = $value;
        
        return $this;
    }
83370
public function setCoreDefaultUsername($value)
    {
        $this->setFieldName('default_username');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
3971
public function setRelations($value)
    {
        if (is_array($value)) {
            $bag = new Bag();
            foreach ($value as $itemParameters) {
                $bag->add(new Relation($itemParameters));
            }
            $value = $bag;
        }
        return $this->setParameter('relations', $value);
    }
180132
public function setValue($value) {
		if ($value instanceof \ArrayObject)
			$this->value = $value->getArrayCopy();
		elseif (is_object($value))
			$this->value = get_object_vars($value);
		elseif (is_array($value))
			$this->value = $value;
		else
			throw new \InvalidArgumentException("Method 'setValue' expected an object or array value");
		
		return $this;
	}