0
我想選擇這種方式 從後選擇sha1(id)= $ id; ('sha1(id)','=',$ id) - > find(ORM :: factory('post') - > where('sha1(id)') );KOHANA 3 ORM:如何使用sha1 - >其中
的問題是如何使用 'SHA1(ID)',其中的功能,因爲這種方式在KO3-ORM doen't工作
thnkx
我想選擇這種方式 從後選擇sha1(id)= $ id; ('sha1(id)','=',$ id) - > find(ORM :: factory('post') - > where('sha1(id)') );KOHANA 3 ORM:如何使用sha1 - >其中
的問題是如何使用 'SHA1(ID)',其中的功能,因爲這種方式在KO3-ORM doen't工作
thnkx
你只是稍微偏離。它應該是:
ORM::factory('post')->where('sha1("id")','=',$id)->find();