Title / Description
Code ->from('Auto4Cars_AutoPriceStatisticDBO s') ->innerJoin('s.Passport_CurrenciesRateDBO cr WITH cr.toCurrency = 1') // ->addWhere('s.created_at > (NOW() - INTERVAL 12 MONTH)') ->groupBy('DATE(s.created_at)') ->orderBy('s.created_at DESC') ->limit('1000'); if ($params['marka_id'] && $params['model_id']) { $qs->andWhere('s.marka_id = ?', $params['marka_id']) ->andWhere('s.model_id = ?', $params['model_id']); } if ($params['complete_id']) { $qs->andWhere('s.complete_id = ?', $params['complete_id']); } if ($params['autosalon_id']) {
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code