Lines Matching refs:table
84 * @param string $table
87 public function addSchema($table, $alias = '')
89 $schema = new Schema($table);
91 throw new StructException('schema missing', $table);
547 [$colname, $table] = $this->resolveColumn($colname);
550 // no table given? assume the first is meant
551 if ($table === null) {
553 $table = $schema_list[0];
556 $schema = $this->schemas[$table] ?? null;
563 * Split a given column name into table and column
568 * @return array (colname, table)
574 // resolve the alias or table name
575 [$table, $colname] = sexplode('.', $colname, 2, '');
577 $colname = $table;
578 $table = null;
580 if ($table && isset($this->aliases[$table])) {
581 $table = $this->aliases[$table];
586 return [$colname, $table];
623 [$colname, $table] = $this->resolveColumn($colname);
626 * If table name is given search only that, otherwise if no strict behavior
630 if ($table !== null && isset($this->schemas[$table])) {
631 $schemas = [$table => $this->schemas[$table]];
632 } elseif ($table === null || !$strict) {