Vous pouvez utiliser virtualFields
$this->ChatCategoryImage->virtualFields = array('Frequency' => 'hits/(DATEDIFF(NOW(),created))');
changer le mode de commande
$order = array('Frequency' => 'desc');
Vous pouvez utiliser virtualFields
$this->ChatCategoryImage->virtualFields = array('Frequency' => 'hits/(DATEDIFF(NOW(),created))');
changer le mode de commande
$order = array('Frequency' => 'desc');