src/Samurai/Component/Helper/FormHelper.php
protected function getDefaultValue($name, $value = null)
    {
        if ($value !== null)
            return $value;

        if ($this->model && $this->model->has($name))
            return $this->model->get($name);

        return $value;
    }
protected function getDefaultValue($name, $value = null)
    {
        if ($value !== null)
            return $value;

        if ($this->model && $this->model->has($name))
            return $this->model->get($name);

        return $value;
    }
protected function getDefaultValue ( $ name , $ value = null ) { if ( $ value !== null ) return $ value ; if ( $ this -> model && $ this -> model -> has ( $ name ) ) return $ this -> model -> get ( $ name ) ; return $ value ; }
get default value

1. from argument
2. from request
3. from model

@param   string  $name
@param   string  $value
@return  mixed
get default value