@param self $table

@return \LaravelRocket\Generator\Objects\Relation|null
333313
public function findRelationWithTable($table)
    {
        $relation = $this->getRelation($table->getName()) ?: $this->getRelation(singularize($table->getName()));

        return $relation;
    }
277772
public function update($table) {
        $obj = new UpdateRule(new Context($this->connection));
        return $obj->update($table);
    }
872914
public function replaceInto($table){
        $obj  =  new ReplaceIntoRule(new Context($this->connection));
        return $obj->replaceInto($table);
    }
1120335
public function from($table, string $alias = null): self
    {
        return $this->table($table, $alias);
    }
1211090
public function setUserTable($table = null) {
		if ($table === null) {
			$this->UserTable = $this->getController()->{$this->getController()->modelClass};
		} else {
			if (is_object($table)) {
				if (!is_a($table, Table::class)) {
					throw new RuntimeException('Passed object is not of type \Cake\ORM\Table!');
				}
				$this->UserTable = $table->getAlias();
			}
			if (is_string($table)) {
				$this->UserTable = TableRegistry::get($table);
			}
		}

		$this->getController()->set('userTable', $this->UserTable->getAlias());
	}
943117
public function table($table)
    {
        $this->table = $this->completeExpression(($table instanceof Expr\Subquery)
            ? $table : new Expr\Table($table));
        
        return $this;
    }
891692
public function removeTable($table)
    {
        if ($table instanceof Table)
            $table = $table->getName();
        $this->tables->set('tables', $table, null);
        return $this;
    }
110545
public function table($table)
    {
        $processor = $this->getPostProcessor();

        $query = new QueryBuilder($this, $this->getQueryGrammar(), $processor);

        return $query->from($table);
    }
1070254
public function setTable(Table $table = null)
    {
        $this->table = $table;

        if ($table && !in_array($this, $table->getRows())) {
            $table->addRow($this);
        }

        return $this;
    }
845299
protected function getTable($table = '')
    {
        if (empty($table))
        {
            switch (config('auth.driver'))
            {
                case 'eloquent':
                    $table = $this->getTableByModelClass(config('auth.model'));
                    break;
                case 'database':
                default:
                    $table = config('auth.table');
                    break;
            }
        }

        return $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();
    }
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;
    }
533701
function getSequence( $table ) {

        if ( isset( $this->sequences[ $table ] ) ) {

            return $this->sequences[ $table ];

        }

        $primary = $this->getPrimary( $table );

        if ( is_array( $primary ) ) return null;

        $table = $this->rewriteTable( $table );

        return $table . '_' . $primary . '_seq';

    }
970558
public function insert($table = null)
    {
        $this->type = self::TYPE_INSERT;
        if ($table) {
            $this->table($table);
        }

        return $this;
    }
661186
static function query($table = null)
    {
        $model = new static();
        return $model->newTable($table = null)->asModel(get_class($model));
    }
502160
public function repair($table = null)
        {
            $table = empty($table) ? $this->_tableName : $table;
            $this->_query("REPAIR TABLE " . $table);

            return $this;
        }