@param Table $table

@return \Subapp\Orm\Collection\Collection
326451
public function getUnsignedFields(Table $table)
    {
        return $table->getFields()->filter(function (Field $field) {
            return $field->isUnsigned();
        });
    }
1200403
public function setRawTable($table)
    {
        $this->table = $table;
        $this->fullTable = $this->db->getTable($this->table);

        return $this;
    }
609559
public function MetaColumns($table)
    {
        $sm = $this->getSchemaManager();
        $schemaColumns = $sm->listTableColumns($table);

        return $schemaColumns;
    }
1114681
protected function validateTable($table)
    {
        $this->checkTableArgument($table);
        if (!$this->hasTable($table)) {
            throw new Exception\TableNotFoundException(__METHOD__ . ": Table '$table' does not exists in database '{$this->schema}'");
        }

        return $this;
    }
31841
public function filter(Table $table)
    {
        $this->sqlWhere = [];
        $this->sqlParams = [];

        $columns = $table->getColumns();
        foreach ($table->getFilters() as $column => $filters) {
            foreach ($filters as $name => $value) {
                $this->buildFilter($columns[$column]['sql_id'], $columns[$column]['type'], $name, $value);
            }
        }

        if (count($this->sqlWhere) == 0)
            return;

        $ands = [];
        foreach ($this->sqlWhere as $filter => $ors)
            $ands[] = '(' . join(') OR (', $ors) . ')';

        $qb = $this->getQueryBuilder();
        $qb->andWhere('(' . join(') AND (', $ands) .')');
        foreach ($this->sqlParams as $name => $value)
            $qb->setParameter($name, $value);
    }
661186
static function query($table = null)
    {
        $model = new static();
        return $model->newTable($table = null)->asModel(get_class($model));
    }
567405
public function apply(Builder $table)
    {
        foreach ($this->getRightValue() as $item) {
            $table = $table->where(
                $this->getLeftValue(),
                $this->getOperator(),
                $item
            );
        }

        return $table;
    }
1090862
public function updateTable($table, ...$tables)
    {
        $instance = $this->updateQueryInstance();

        $instance->updateQuery()->table($table, ...$tables);

        return $instance;
    }
41663
public function wrapTable($table)
    {
        if ($table instanceof Blueprint) $table = $table->getTable();

        return parent::wrapTable($table);
    }
973409
public function table($table = null)
    {
        deprecationWarning(
            get_called_class() . '::table() is deprecated. ' .
            'Use setTable()/getTable() instead.'
        );
        if ($table !== null) {
            $this->setTable($table);
        }

        return $this->getTable();
    }
494480
final public function removeTable(Table $table): Database
    {
        if (!$this->hasTable($table::getName())) {
            throw new InvalidArgumentException('Table '.$table::getName().' not exists');
        }

        unset($this->tables[$table::getName()]);

        return $this;
    }
471727
protected function sortTable(TableNode $table)
    {
        $raw_table = $table->getTable();
        sort($raw_table);
        return new TableNode($raw_table);
    }
624166
public function table($table)
    {
        if( $table instanceof Expression ) {
            $this->table = $table;
        } else {
            $this->table = (string) $table;
        }
        return $this;
    }
462074
public function paginate(Table $table)
    {
        $query = $this->getQueryBuilder()->getQuery();
        $paginator = new Paginator($query);
        $table->calculatePageParams(count($paginator));

        if ($table->getPageSize() > 0) {
            $paginator->getQuery()
                      ->setFirstResult($table->getPageSize() * ($table->getPageNumber() - 1))
                      ->setMaxResults($table->getPageSize());
        }

        $mapper = $table->getMapper();
        if (!$mapper)
            throw new \Exception("Data 'mapper' is required when using DoctrineAdapter");

        $result = [];
        foreach ($paginator as $row)
            $result[] = $mapper($row);

        return $result;
    }
71287
public function update($table)
    {
        $query = new Query\UpdateQuery();

        if ($this->pdo) {
            $query->setPDO($this->pdo);
        }

        return $query->table($table);
    }
1234738
public function hasTable($table = '')
    {
        $tableName = '';

        $tableName = ($table !== '') ?
            $table : $this->tableName;

        $this->schema = "SHOW TABLES LIKE '".$tableName."'";
        $this->checkSchemaExistence = true;

        return $this;
    }
1316719
public function update($table)
    {
        $this->type  = 'UPDATE';
        $this->table = $this->quoteName($table);
        return $this;
    }