HABTM save Question
Hello,
is there a way to save directly to the joining table? Like the find data?
Model Translation HABTM Translation:
$data = array(
'Translation' => array(
'key' => '213152374'
),
'Language' => array(
array(
'id' => '1',
'LanguagesTranslation' => array(
'value' => 'Das ist ein Test'
)
),
array(
'id' => '2',
'LanguagesTranslation' => array(
'value' => 'This is a test'
)
)
)
);
$this->Translation->saveAll($data);
How i can fill the additional field?
I know i can use $this->Translation->LanguagesTranslation->save() bu is there a better way?
Tanks
Steffen
--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home