我想更新使用雄辯我的數據,但它給了我一些錯誤:雄辯的ORM沒有保存價值laravel
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'od_logo.id' in 'where clause' (SQL: select * from `od_logo` where `od_logo`.`id` = 1 limit 1)
這裏是我的代碼:
$logo = Logo::find($id);
$logo->logo_logoimg_name = Input::get('logo_name');
$logo->logo_logoimg_path = $logo_destinationPath . $logo_filename;
$logo->logo_faviconimg_name = $favicon_destinationPath . $favicon_filename;
$logo->save();
請找我哪裏錯了在此代碼中
被稱爲'id'或別的東西你的主鍵列? – lukasgeiter 2015-02-11 19:21:37
我的主鍵叫logo_id – okconfused 2015-02-11 19:25:35