im Versuch, Daten auf einer Pivot-Tabelle ohne Erfolg gespeichert zuzugreifen ...Kohana 2.3.4 ORM - Zugriff auf Daten von Pivot-Tabelle
Meine Tabellen und Modelle sind diese:
* Länder
- id
-name
-code_name
-active
* Seiten
-id
-season_id
-title
-active
Countries_Sites:
-country_id
-site_id
-Jahr
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');
}
Ich frage mich, ob es eine eingebaute Methode oder etwas ist, das "für den Zugriff auf Jahr "Wert der Pivot-Tabelle.
Dank!