Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须从一个名为的表中读取数据,该表sys_sbu与我的应用程序位于同一数据库中。但是,我已设置tr_为所有表的前缀。当我尝试$useTable = 'sys_sbu'在我的模型上使用时,它确定它是tr_sys_sbu. 如何强制它忽略前缀?
sys_sbu
tr_
$useTable = 'sys_sbu'
tr_sys_sbu
所以,试试这个:
class ExampleModel{ var $useTable = "example"; var $tablePrefix = ""; }
现在好了:D