Temparory solution to the ID issue - not using relations. Works for creating/updating entities for now.