साथCakePHP पृष्ठांकन आदेश काम नहीं कर रहा
$this->paginate = array(
"fields" => array(
"Player.join_country"
),
"joins" => array(
array(
"table" => "banner_key_current_ext",
"alias" => "BannerKeyCurrentExt",
"type" => "inner",
"conditions" => "BannerKeyCurrentExt.banner_key_id = BannerKeyCurrent.banner_key_id"
),
array(
"table" => "players",
"alias" => "Player",
"type" => "inner",
"conditions" => "BannerKeyCurrentExt.identifier = Player.zban_player_id" . $country_condition
),
array(
"table" => "users",
"alias" => "User",
"type" => "inner",
"conditions" => "BannerKeyCurrent.user_id = User.user_id"
),
array(
"table" => "tag_links",
"alias" => "TagLinks",
"type" => "inner",
"conditions" => "TagLinks.id = BannerKeyCurrent.user_id AND TagLinks.tag_id = 710"
)
),
"conditions" => array(
"BannerKeyCurrent.date BETWEEN ? AND ?" => array(
$this->request->query["period_from"],
$this->request->query["period_to"]
),
"BannerKeyCurrent.plan_id" => $brands_plan_map[$this->request->query["brand"]]["plans"],
"BannerKeyCurrent.operation_id" => $operation_ids
),
"group" => array("Player.join_country"),
"order" => array(
"Player.join_country" => "DESC"
),
"limit" => 999999,
"maxLimit" => 999999
);
सब कुछ मैं CakePHP v2.0.2
मैं मुसीबत हो रहा है उपयोग कर रहा हूँ सभी क्षेत्रों में काम करता है, मिलती है, समूह, कोई समस्या नहीं है, लेकिन आदेश सरल अभ्यस्त काम सीमित करता है। Sql_dump तत्व को आउटपुट करने से पता चलता है कि यह क्वेरी में कभी नहीं जोड़ा गया है।
किसी भी मदद की सराहना की जाएगी।
धन्यवाद
आपकी पेजिनेट कॉल कैसा दिखता है, और डीबग ($ this-> modelClass) क्या करता है; नियंत्रक से आउटपुट? – jeremyharris
मुझे एक ही समस्या है। कोई भी समाधान? – XuDing