public function filterIsPassed(): self | public function filterIsPassed(): self | ||||
{ | { | ||||
$this->andWhere('distribution.date < :date_today') | |||||
$this->andWhere('distribution.date <= :date_today') | |||||
->addParams([':date_today' => date('Y-m-d')]); | ->addParams([':date_today' => date('Y-m-d')]); | ||||
return $this; | return $this; |