thinkphp/SAE/資料庫操作/D方法 有關問題

來源:互聯網
上載者:User
thinkphp/SAE/資料庫操作/D方法 問題
本地的資料庫中本來有一個mesg表,後來在這個表後面增加了一個欄位maid。
在某個操作中使用
$mesg = D('Mesg');
dump($mesg);

模型裡有:
protected $_map = array(
'user'=>'muser',
'content'=>'mcontent',
'time'=>'mtime',
'aid'=>'maid',
);

結果中有這個:
["fields:protected"] => array(8) {
[0] => string(3) "mid"
[1] => string(4) "muid"
[2] => string(5) "muser"
[3] => string(8) "mcontent"
[4] => string(5) "mtime"
[5] => string(4) "maid"//這個
["_autoinc"] => bool(true)
["_pk"] => string(3) "mid"
}

在本地裡面是有maid欄位的。
但是上傳到sinaapp上面的時候,還是同樣的操作,結果卻是:
["fields":protected] => array(7) {
[0] => string(3) "mid"
[1] => string(4) "muid"
[2] => string(5) "muser"
[3] => string(8) "mcontent"
[4] => string(5) "mtime"
["_autoinc"] => bool(true)
["_pk"] => string(3) "mid"
}

而下面這個無論在本地還是sae上都是正常的:
["_map":protected] => array(4) {
["user"] => string(5) "muser"
["content"] => string(8) "mcontent"
["time"] => string(5) "mtime"
["aid"] => string(4) "maid"
}
本來sae上面的table也是沒有那個欄位的,後來增加了欄位無效,我把所有表重新傳上去也無效。
runtime刪了很多次也是無效,不知道是什麼原因造成的?
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.