2012-12-22 90 views
0

更新我的Kohana從3.0.7做3.0.8和我得到這個: enter image description hereKohana的升級,從3.0.7到3.0.8差錯

我的功能是:

public function unique_key_exists($value) 
{ 
    return (bool) DB::select(array('COUNT("*")', 'total_count')) 
        ->from($this->_table_name) 
        ->where($this->unique_key($value), '=', $value) 
        ->execute($this->_db) 
        ->get('total_count'); 
} 

回答

1

重新定義你的函數的簽名如下:

public function unique_key_exists($value, $field = NULL) 

看到的,如果在父類此功能與此簽名定義,你必須遵循它的子類 - 或面臨E_STRICT警告。

+0

感謝您的幫助;)它的作品:) – Saibamen

相關問題