April 16, 2019

cakephp 3 query where date now()

        $query = $this->find('all', [
            // …
        ]);
        $query->where([
            'DATE(created)' => $query->func()->date([$query->func()->now()]),
        ]);

No comments: