ich erhalte nach einer HABTM-Beziehung (Post--PostTerm--Term)
- Code: Alles auswählen
...
[Term] => Array
(
[0] => Array
(
[id] => 1
[parent_id] =>
[vocabulary_id] => 1
[name] => News
[slug] => news
[description] => Category for News
[lft] => 1
[rght] => 2
[status] => 1
[updated] => 2010-05-24 19:04:21
[created] => 2010-05-24 12:27:18
[PostTerm] => Array
(
[id] => 6
[post_id] => 2
[vocabulary_id] => 0
[term_id] => 1
[weight] =>
)
)
)
jetzt möchte ich aber noch eine Abfrage von Vocabulary in Beziehung zu den terms.
Ich hab das erstmal gelöst mir recursive = 2. Dabei findet er aber alle Beziehungen der anderen models die ich nicht brauche. Gibt es eine andere Möglichkeit nur Vocabulary einzuschließen?
so etwa sollte es aussehen (mit recursive = 2)
- Code: Alles auswählen
[Term] => Array
(
[0] => Array
(
[id] => 1
[parent_id] =>
[vocabulary_id] => 1
[name] => News
[slug] => news
[description] => Category for News
[lft] => 1
[rght] => 2
[status] => 1
[updated] => 2010-05-24 19:04:21
[created] => 2010-05-24 12:27:18
[PostTerm] => Array
(
[id] => 6
[post_id] => 2
[vocabulary_id] => 0
[term_id] => 1
[weight] =>
)
[Vocabulary] => Array
(
[id] => 1
[name] => Categories
[alias] => categories
[description] => Taxonomy Category
[plugin] =>
[term_count] => 1
[weight] =>
[updated] => 2010-05-24 19:12:18
[created] => 2010-05-24 00:49:46
)
)
)
Ich hoffe ich hab mich einigermaßen verständlich ausgedrückt.