public function createView($name, $sql = null)
    {
        $view = new View($name, $sql);
        $this->addView($view);

        return $view;
    }
public function createView($name, $sql = null)
    {
        $view = new View($name, $sql);
        $this->addView($view);

        return $view;
    }
public function createView ( $ name , $ sql = null ) { $ view = new View ( $ name , $ sql ) ; $ this -> addView ( $ view ) ; return $ view ; }
Creates and adds a new view.

@param string $name The view name.
@param string $sql  The view sql.

@return \Fridge\DBAL\Schema\View The new view.
Creates and adds a new view .