Hello,
I have one job ControlQuoteStatus in Espo\Custom\Jobs.
class ControlQuoteStatus extends \Espo\Core\Jobs\Base {
public function run() {
$list = $this->getEntityManager()->getRepository('Quote')->where(array(
'status' => 'pending'
))->find();
foreach ($list as $e) {
$e->set('status', 'pendinggg');
$this->getEntityManager()->saveEntity($e);
}
return true;
}
}
Created a scheduled job with frequency 1 minute.
In windows task scheduler task ran successfully.
But quote table is not affected.
I am really stuck, Can somebody help me.
Thanks in advance
I have one job ControlQuoteStatus in Espo\Custom\Jobs.
class ControlQuoteStatus extends \Espo\Core\Jobs\Base {
public function run() {
$list = $this->getEntityManager()->getRepository('Quote')->where(array(
'status' => 'pending'
))->find();
foreach ($list as $e) {
$e->set('status', 'pendinggg');
$this->getEntityManager()->saveEntity($e);
}
return true;
}
}
Created a scheduled job with frequency 1 minute.
In windows task scheduler task ran successfully.
But quote table is not affected.
I am really stuck, Can somebody help me.
Thanks in advance
Comment