This is a strange one....
One form, creating records in 3 tables (Question, Answer, Question Category)
Question is saved - OK.
(Primary key is questionId, autoincrement)
Answer is saved - OK
(Primary key is answerID, autoincrement)
questionCategory save - tries to update Answer!
(Primary key is questionCategoryId, autoincrement.
questionCategoryId is not on the form.
the selected table is questionCategory.
If I swap Answer and questionCategory save blocks, I get the same problem, but in reverse. It tries to update questionCategory instead of creating Answer.
It also stops before doing a fourth record create to questionCategory. This involves unset()ting the questionCategoryId, changing the category and then creating the second category record.
It failed after I added the Answer block. Prior to this it did 3 successful creates to 2 tables (Question and questionCategory)
One form, creating records in 3 tables (Question, Answer, Question Category)
Question is saved - OK.
(Primary key is questionId, autoincrement)
Answer is saved - OK
(Primary key is answerID, autoincrement)
questionCategory save - tries to update Answer!
(Primary key is questionCategoryId, autoincrement.
questionCategoryId is not on the form.
the selected table is questionCategory.
If I swap Answer and questionCategory save blocks, I get the same problem, but in reverse. It tries to update questionCategory instead of creating Answer.
It also stops before doing a fourth record create to questionCategory. This involves unset()ting the questionCategoryId, changing the category and then creating the second category record.
It failed after I added the Answer block. Prior to this it did 3 successful creates to 2 tables (Question and questionCategory)