LazyRecord\Migration\Migration::__call PHP Method

__call() public method

public __call ( $m, $a )
    public function __call($m, $a)
    {
        if (method_exists($this->builder, $m)) {
            $this->logger->info($m);
            $sql = call_user_func_array(array($this->builder, $m), $a);
            $this->query($sql);
        } else {
            throw new BadMethodCallException("Method {$m} does not exist.");
        }
    }