virtualFieldsを使用できます
$this->ChatCategoryImage->virtualFields = array('Frequency' => 'hits/(DATEDIFF(NOW(),created))');
注文方法の変更
$order = array('Frequency' => 'desc');
virtualFieldsを使用できます
$this->ChatCategoryImage->virtualFields = array('Frequency' => 'hits/(DATEDIFF(NOW(),created))');
注文方法の変更
$order = array('Frequency' => 'desc');