Hi guys,
I have a little annoying problem.
Habtm declaration:
'ParentsHasStudents' => array(
'className' => 'Parents',
'joinTable' => 'parents_has_students',
'foreignKey' => 'parent_id',
'unique' => false,
'associationForeignKey' => 'student_id'));
And Post Data:
[ParentsHasStudents] => Array
(
[0] => Array
(
[student_id] => 1
)
[1] => Array
(
[student_id] => 5
)
command $this->Person->saveAll($this->data) is ovveriding first
student_id data by UPDATE:
"UPDATE `parents_has_students` SET `student_id` = 5, `parent_id` = 299 WHERE
`parents_has_students`.`parent_id` = 299"
How correct this return into INSERT?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
To unsubscribe, reply using "remove me" as the subject.