I'm having a problem with pushing raw insert query to Queue (Beanstalkd). I want to execute raw insert with subquery inside it. I want to send it to queue.
It is inside loop and date changes over loop.
Queue::push(function($job) use ($date)
{
DB::statement("Insert into orders Select * from order_ab where date= ?", $date)
$job->delete();
});
Error is : You cannot serialize or unserialize PDO instances in vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/SerializableClosure.php
Please , Help me to resolve this issue.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire