-
Notifications
You must be signed in to change notification settings - Fork 1.5k
-
- Laravel-mongodb Version: 3.6.4
- PHP Version: 7.4
- Database Driver & Version: 3.2
Description:
When running jobs i get "Call to a member function beginTransaction() on null"
Tried to extend the class but laravel hooks dont work
I suggest adding a workaround by overriding the methods getPdo(), beginTransaction(), commit(), rollBack() to empty function in Connection class
Steps to reproduce
- Register a job
- Call php artisan queue:work
Expected behaviour
When it comes to mongo it shoud run the job
Actual behaviour
The getPdo() method returns null and beginTransaction() throws the error specified
Logs:
Insert log.txt here (if necessary)Beta Was this translation helpful? Give feedback.
All reactions
Answered by
Smolevich
Oct 7, 2020
@vrvoicu what are settings in config/queue.php
?
Replies: 1 comment
-
@vrvoicu what are settings in config/queue.php
?
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
0 replies
Answer selected by
divine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment