From 153d6fa20a89f0d8e20bd49ebea665927cfce460 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Mon, 18 Nov 2013 18:47:14 +0400 Subject: [PATCH] Correct ordering params in SqlCriteria::order() --- model/SqlCriteria.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/SqlCriteria.php b/model/SqlCriteria.php index a634257..8b721f7 100644 --- a/model/SqlCriteria.php +++ b/model/SqlCriteria.php @@ -124,11 +124,11 @@ class SqlCriteria } /** - * @param $limit int * @param $offset int + * @param $limit int * @return SqlCriteria */ - public function limit($limit, $offset = 0) + public function limit($offset = 0, $limit) { if ($offset) { $this->limit = (int) $offset . ',';