public function getDefault($key)
    {
        $schema = $this->getModelSchema();

        if (array_key_exists('default', $schema[$key]))
            return $schema[$key]['default'];

        return null;
    }
public function getDefault($key)
    {
        $schema = $this->getModelSchema();

        if (array_key_exists('default', $schema[$key]))
            return $schema[$key]['default'];

        return null;
    }
public function getDefault ( $ key ) { $ schema = $ this -> getModelSchema ( ) ; if ( array_key_exists ( 'default' , $ schema [ $ key ] ) ) return $ schema [ $ key ] [ 'default' ] ; return null ; }
Returns the default value of the field.

@param string $key The name of the field

@return mixed or null if there is no default value
Returns the default value of the field .