我需要在cakephp中的一年間隔內抓取記錄。我試着用time
以下查詢條件不起作用。在cakephp中獲取當前年份的mysql記錄
$accept = $this->AssignListing->find('all',array('conditions' => array('AssignListing.writer_id' => $writer,'AssignListing.status' => 1, 'AssignListing.date_added > NOW() - INTERVAL 1 YEAR')));