Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orderBy is not working #5

Open
sayedsahin opened this issue Sep 12, 2022 · 0 comments
Open

orderBy is not working #5

sayedsahin opened this issue Sep 12, 2022 · 0 comments

Comments

@sayedsahin
Copy link

sayedsahin commented Sep 12, 2022

Warning: Array to string conversion in D:\development\scraper\gptools\vendor\requtize\query-builder\src\QueryBuilder\QueryBuilder\Compiler.php on line 68

And I solved this problem

if(isset($querySegments['orderBy']) && is_array($querySegments['orderBy']))
        {
            foreach($querySegments['orderBy'] as $order)
                $orderBy = $this->quoteTable($order['field']).' '.$order['type'].', ';

            if($orderBy = trim($orderBy, ', '))
                $orderBy = 'ORDER BY '.$orderBy;
        }

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant