Bolt\Legacy\Storage::tableExists PHP Method

tableExists() protected method

Check if the table $name exists. We use our own queries here, because it's _much_ faster than Doctrine's getSchemaManager().
protected tableExists ( $name ) : boolean
$name
return boolean
    protected function tableExists($name)
    {
        // We only should check each table once.
        if (isset($this->tables[$name])) {
            return true;
        }
        if ($this->app['db']->getSchemaManager()->tablesExist([$name]) === true) {
            return $this->tables[$name] = true;
        }
        return false;
    }