简体   繁体   中英

Cakephp naming convention for table name

I have a table named job and is not plural but I was wondering if there is a way to overcome this so that cake can pickup singular table names.

I cannot change the table name as it is also used by other API's

Is there a way to do this in Cakephp?

使用模型的useTable属性。

var $useTable = 'job';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM