<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Greetings All,</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div>I'm working with transaction groups and tables with relations (database foreign keys). Let's say that there are two tables, 'building_footprints'  and 'windows'. The windows table references the 'building_footprints' table. I've added the relations in QGIS through the Project properties | relations dialog so that when editing 'building_footprints' I can add a child record for 'windows'. Now because I have transaction groups active, the changes are pushed back to the database immediately, if I create a child record before saving the parent record this causes a problem because the parent record doesn't exist<span class="gmail_default" style="font-family:trebuchet ms,sans-serif">. It is often the case that I am going to add child records when I'm creating the parent record, so adding a parent record, saving it, then editing it just to add the child record becomes cumbersome.<br></span></div><div><span class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></span></div><div><span class="gmail_default" style="font-family:trebuchet ms,sans-serif"> I figured that someone must've had this issue before, but can't seem to find any documentation about this. Is there a workaround for this? (other than not using transaction groups and saving each layer individually)  Or have I just missed something extremely obvious?<br></span></div><div><span class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></span></div><div><span class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></span></div><div><span class="gmail_default" style="font-family:trebuchet ms,sans-serif">Rh</span>ys</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Peace & Love | Live Long & Prosper</div></div></div></div></div></div>