public function toSql(): string
    {
        $sql = $this->queryRelate->getQuery()->toSql();

        $this->resetQueryRelate();

        return $sql;
    }
public function toSql(): string
    {
        $sql = $this->queryRelate->getQuery()->toSql();

        $this->resetQueryRelate();

        return $sql;
    }
public function toSql ( ) : string { $ sql = $ this -> queryRelate -> getQuery ( ) -> toSql ( ) ; $ this -> resetQueryRelate ( ) ; return $ sql ; }
return run sql.

@return string
return run sql .