0

我刚刚将我的网站从本地主机移动到真正的主机......问题就开始了。

在我的 Windows 机器上,关系有效,但在我的主机上,kohana 抛出Kohana_Exception [ 0 ]: The klinikas property does not exist in the Model_User class

我的 Model_User 类包含这些关系

protected $_has_many = array(
       'klinikas' => array('model'=>'klinika','through'=>'klinikas_users'),
       'roles' => array('model' => 'role', 'through' => 'roles_users'),
);

问题是这是什么原因,我该如何解决?

4

1 回答 1

0

事实证明,我只需要将我的模块名称从user.phptoUser.php和 wiola 大写就可以了!

于 2013-06-20T19:07:57.033 回答