0
我嘗試訪問存儲在沒有成功透視表數據的訪問數據...Kohana的ORM 2.3.4 - 從數據透視表
我的表和模型是這些:
*國家
- ID
-name
-code_name
-active
*網站
-id
-season_id
-title
-active
Countries_Sites:
-country_id
-site_id
- 年
class Site_Model extends ORM {
protected $has_and_belongs_to_many = array('countries');
}
class Country_Model extends ORM {
protected $has_and_belongs_to_many = array('sites');
}
我不知道是否有一個內置的方法什麼的訪問「年「的數據透視表的值。
謝謝!