lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
public function tryMethod()
    {
        $args   = func_get_args();
        $method = $args[0];
        unset($args[0]);
        $args = array_values($args);

        $callback = [$this, $method];
        assert(is_callable($callback));

        try {
            return call_user_func_array($callback, $args);
        } catch (Throwable $e) {
            return false;
        }
    }
public function tryMethod()
    {
        $args   = func_get_args();
        $method = $args[0];
        unset($args[0]);
        $args = array_values($args);

        $callback = [$this, $method];
        assert(is_callable($callback));

        try {
            return call_user_func_array($callback, $args);
        } catch (Throwable $e) {
            return false;
        }
    }
public function tryMethod ( ) { $ args = func_get_args ( ) ; $ method = $ args [ 0 ] ; unset ( $ args [ 0 ] ) ; $ args = array_values ( $ args ) ; $ callback = [ $ this , $ method ] ; assert ( is_callable ( $ callback ) ) ; try { return call_user_func_array ( $ callback , $ args ) ; } catch ( Throwable $ e ) { return false ; } }
Tries any method on the schema manager. Normally a method throws an
exception when your DBMS doesn't support it or if an error occurs.
This method allows you to try and method on your SchemaManager
instance and will return false if it does not work or is not supported.

<code>
$result = $sm->tryMethod('dropView', 'view_name');
</code>

@return mixed
Tries any method on the schema manager . Normally a method throws an exception when your DBMS doesn t support it or if an error occurs . This method allows you to try and method on your SchemaManager instance and will return false if it does not work or is not supported .