I would like to have to tables linked.
table1 is the master table.
table2 can have max 1 record for each record in table1 or even no record.
Id integer (auto increment) ---> id integer
x some field x some field
My problem is when i post after a insert, table2 is posted first, but on that moment table1.id has not a value yet and table2 needs the id value.
1) Why is table2 first posted?.
2) Is there any other way to manage my problem.