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

Call to undefined method compileWhereSub() #2656

Closed
mehmetgulbilge opened this issue Oct 31, 2023 · 4 comments · Fixed by #2661
Closed

Call to undefined method compileWhereSub() #2656

mehmetgulbilge opened this issue Oct 31, 2023 · 4 comments · Fixed by #2661

Comments

@mehmetgulbilge
Copy link

  • Laravel-mongodb Version: 4.1
  • PHP Version: 8.2
  • Database Driver & Version:

BadMethodCallException
Call to undefined method MongoDB\Laravel\Query\Builder::compileWhereSub()

How can I solve this?

@mehmetgulbilge
Copy link
Author

trace:
#0 /application/vendor/illuminate/database/Query/Builder.php(3967): Illuminate\Database\Query\Builder::throwBadMethodCallException()\n#1 /application/vendor/mongodb/laravel-mongodb/src/Query/Builder.php(1353): Illuminate\Database\Query\Builder->__call()\n#2 /application/vendor/mongodb/laravel-mongodb/src/Query/Builder.php(1059): MongoDB\Laravel\Query\Builder->__call()\n#3 /application/vendor/mongodb/laravel-mongodb/src/Query/Builder.php(926): MongoDB\Laravel\Query\Builder->compileWheres()\n#4 /application/vendor/mongodb/laravel-mongodb/src/Query/Builder.php(678): MongoDB\Laravel\Query\Builder->performUpdate()\n#5 /application/vendor/mongodb/laravel-mongodb/src/Eloquent/Builder.php(65): MongoDB\Laravel\Query\Builder->update()

@hans-thomas
Copy link
Contributor

@GromNaN I reverted my changes in #2658 but the pipeline is still failing.

Pipeline's first error:
There were 93 errors:

1) MongoDB\Laravel\Tests\Casts\BooleanTest::testBool
BadMethodCallException: Call to undefined method MongoDB\Laravel\Query\Builder::compileWhereSub()

/home/runner/work/laravel-mongodb/laravel-mongodb/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php:67
/home/runner/work/laravel-mongodb/laravel-mongodb/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3967
/home/runner/work/laravel-mongodb/laravel-mongodb/src/Query/Builder.php:1378
/home/runner/work/laravel-mongodb/laravel-mongodb/src/Query/Builder.php:1077
/home/runner/work/laravel-mongodb/laravel-mongodb/src/Query/Builder.php:929
/home/runner/work/laravel-mongodb/laravel-mongodb/src/Query/Builder.php:681
/home/runner/work/laravel-mongodb/laravel-mongodb/src/Eloquent/Builder.php:65
/home/runner/work/laravel-mongodb/laravel-mongodb/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1213
/home/runner/work/laravel-mongodb/laravel-mongodb/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:1130
/home/runner/work/laravel-mongodb/laravel-mongodb/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:990
/home/runner/work/laravel-mongodb/laravel-mongodb/tests/Casts/BooleanTest.php:26

Also, this is reported in this issue. I think there is a problem in the 4.1 branch.

@hans-thomas
Copy link
Contributor

I didn't have this error until I updated the dependencies. I still don't know what causes this issue.

@hans-thomas
Copy link
Contributor

Okay, I solved this. I will make a PR after a little rest😬

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