Sets table for FROM query

@param string $from The table
@return $this
160884
public function from($from)
    {
        $pos = strpos($from, ' ');
        if (false !== $pos) {
            $this->table = substr($from, 0, $pos);
        } else {
            $this->table = $from;
        }
        $this->fullTable = $this->db->getTable($this->table);
        return $this->add('from', $this->db->getTable($from));
    }
1194986
public function from($table = null)
    {
        if ($table !== null) {
            $this->table = $table;
            $table = $this->quote($table);
        }

        $this->append(' FROM ' . $table);
        return $this;
    }
45232
public function from($tables)
    {
        if (is_string($tables)) {
            $tables = $this->splitParts($tables);
        }
        foreach ($tables as $k => $table) {
            if ($alias = $this->matchAlias($table)) {
                $tables[$k] = $this->db->quoteTable($alias[0]) . ' AS ' . $this->db->quoteTable($alias[1]);
            } else {
                $tables[$k] = $this->db->quoteTable($table);
            }
        }

        $this->query['from'] = implode(', ', $tables);

        return $this;
    }
143847
public function from($table) 
    {    
        $this->fromTable = $table;
        $this->sql .= 'FROM ' . $this->quoteTableName($table);
        
        return $this;
    }
181345
public function setTable(string $table): self
    {
        $this->table = $this->agent->escapeIdentifier($table);

        return $this;
    }
993846
public function addFrom(string $from): void
    {
        $from = $this->quoteName($from);
        $this->statement .= ' FROM ' . $from . PHP_EOL;
    }
1203730
public static function from(Traversable $from)
  {
    $self = new self();
    foreach ($from as $item)
    {
      $self->push($item);
    }

    return $self;
  }
1062104
public function table($table, $alias = null)
    {
        $this->sqlParts['from']['table'] = $table;

        if ($alias) {
            $this->sqlParts['from']['alias'] = $alias;
        }

        return $this;
    }
756368
protected function _setJoins()
    {
        $joins = $this->_sql->getJoins();
        foreach ($joins as $join) {
            $this->_statement .= $this->_createJoinStatement($join);
        }
        return $this;
    }
885252
protected function setJoin($query = null)
    {
        $query = $query ?: $this->query;

        $baseTable = $this->related->getTable();

        $key = $baseTable.'.'.$this->related->getKeyName();

        $query->join($this->table, $key, '=', $this->getOtherKey());

        return $this;
    }
268340
public function alias($from, $to = null)
	{
		if (is_array($from))
		{
			$this->aliases = array_merge($this->aliases, $from);

			return $this;
		}

		$this->aliases[$from] = $to;
		$this->cache->set($from, $to);
	}
155200
public function addRange($from = null, $to = null)
    {
        $range = array_filter(
            [
                'from' => $from,
                'to' => $to,
            ],
            function ($v) {
                return !is_null($v);
            }
        );

        $this->ranges[] = $range;

        return $this;
    }
383601
public function setValue($value = null, $fromDb = false)
    {
        if ($fromDb) {
            $this->storedValue = $this->processFromDbValue($value);

            return $this;
        }

        $currentValue = $this->getValue();
        if ($currentValue instanceof AbstractEntity && is_array($value)) {
            $currentValue->populate($value);
        }

        return $this;
    }
1151455
public function rename($from, $to)
    {
        $sql = sprintf('RENAME TABLE %s TO %s', $from, $to);
        $this->db->executeUpdate($sql);

        return $this;
    }
48161
public function setParent($parent, $from)
    {
        $this->_parent->{$this->_through}->setParent($parent, $from);
        return $this;
    }
864688
public function setValue($value = null, $fromDb = false)
    {
        if ($fromDb) {
            $this->value = $this->processFromDbValue($value);

            return $this;
        }

        if (!$this->canAssign()) {
            return $this;
        }

        $value = $this->processSetValue($value);
        $this->validate($value);

        $this->value = $value;

        return $this;
    }
217087
public function from($table)
    {
        $this->fromTable = (is_null($table)) ? get_class($this) : $table;

        return $this;
    }